gitlab-org--gitlab-foss/lib
Sean McGivern d771719278 Speed up DeclarativePolicy::Runner#steps_by_score
There were a couple of things here:

1. If the state was already enabled, we don't need to check all the remaining
   steps - only those that can prevent the state. (An enable followed by an
   enable is a no-op.) This logic is in `#run`, but we still did the work of
   scoring and sorting the steps.
2. The sorting is known to be inefficient, but we can make it slightly more
   efficient by stopping once we have a step with zero score, as that means it's
   free.

Neither of these make this _fast_, especially when called lots of times - as we
do when there is lots of activity on an issue - but they do help some.
2017-10-04 13:50:05 +01:00
..
api Merge branch '37970-timestamped-ci' into 'master' 2017-10-03 18:16:54 +00:00
assets
backup Ensure all refs are restored on a restore from backup 2017-09-29 15:17:05 -07:00
banzai Merge remote-tracking branch 'upstream/master' into gem/sm/bump-google-api-client-gem-from-0-8-6-to-0-13-6 2017-10-03 23:03:36 +08:00
bitbucket Whitelist or fix additional `Gitlab/PublicSend` cop violations 2017-08-14 12:14:11 -04:00
constraints Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
container_registry
declarative_policy Speed up DeclarativePolicy::Runner#steps_by_score 2017-10-04 13:50:05 +01:00
generators/rails/post_deployment_migration
github Fix notes type created from import 2017-09-29 11:18:58 +00:00
gitlab Merge branch 'gitaly-delete-branch' into 'master' 2017-10-04 07:34:33 +00:00
haml_lint Restrict InlineJavaScript for haml_lint to dev and test environment 2017-08-08 10:36:21 +02:00
json_web_token
mattermost Fix Mattermost integration 2017-08-04 12:22:10 +03:00
microsoft_teams
omni_auth/strategies Refactor CSRF protection 2017-07-26 11:05:44 +02:00
peek/rblineprof Improve & fix the performance bar UI and behavior 2017-07-06 19:37:31 +00:00
rouge
rspec_flaky Use a new RspecFlakyListener to detect flaky specs 2017-08-11 14:55:10 +02:00
support Filter sensitive query string parameters from NGINX access logs 2017-08-10 12:28:04 +01:00
system_check Whitelist authorized_keys.lock in the gitlab:check rake task 2017-10-02 11:25:02 +01:00
tasks Create repositories via Gitaly 2017-09-29 18:27:06 +02:00
additional_email_headers_interceptor.rb
after_commit_queue.rb Update rubocop-gitlab-security to 0.1.0 2017-08-28 12:46:00 -04:00
banzai.rb
declarative_policy.rb declarative_policy rubocop fix 2017-08-03 09:07:18 -07:00
disable_email_interceptor.rb
email_template_interceptor.rb `current_application_settings` belongs on `Gitlab::CurrentSettings` 2017-08-31 13:38:33 +01:00
event_filter.rb
expand_variables.rb
extracts_path.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
feature.rb Re-add Feature.register_feature_groups which is already documented 2017-07-10 15:56:23 +02:00
file_size_validator.rb Whitelist or fix additional `Gitlab/PublicSend` cop violations 2017-08-14 12:14:11 -04:00
gitlab.rb
gt_one_coercion.rb
repository_cache.rb
static_model.rb Re-enable SqlInjection and CommandInjection 2017-08-08 10:50:54 -04:00
system_check.rb
unfold_form.rb
uploaded_file.rb Whitelist or fix additional `Gitlab/PublicSend` cop violations 2017-08-14 12:14:11 -04:00
version_check.rb