gitlab-org--gitlab-foss/spec
James Edwards-Jones b8c7bef5c0 Extracted ProtectableDropdown to clean up Project#open_branches
Makes it clear this is only used in dropdowns, instead of cluttering up Project class. Since we only care about branch names, it is also possible to refactor out a lot of the set/reject logic.

A benchmark on Array/Set subtraction favoured using Arrays. This was with 5000 ‘branches’ and 2000 ‘protections’ to ensure a similar comparison to the commit which introduced using Set for intersection.

Comparison:
   array subtraction:      485.8 i/s
     set subtraction:      128.7 i/s - 3.78x slower
2017-04-03 17:19:53 +01:00
..
bin
config Fix redis spec 2017-03-15 18:36:20 -06:00
controllers Protected tags copy/paste from protected branches 2017-03-31 19:37:01 +01:00
db/production
factories Protected tags copy/paste from protected branches 2017-03-31 19:37:01 +01:00
features Added ProtectedTags#show page 2017-03-31 19:37:38 +01:00
finders Allow filtering by all started milestones 2017-03-15 17:02:38 +00:00
fixtures Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into orderable-issues 2017-03-07 13:42:45 +02:00
helpers Todos performance: Include associations in Finder 2017-03-20 12:45:43 +01:00
initializers Improve storage validation after configuration structure update 2017-03-08 15:51:30 -03:00
javascripts Merge branch 'add-filter-focus-style' into 'master' 2017-03-21 04:25:22 +00:00
lib Protected Tags enforced over git 2017-03-31 19:37:38 +01:00
mailers All CI offline migrations 2017-03-17 23:06:11 +00:00
migrations All CI offline migrations 2017-03-17 23:06:11 +00:00
models Extracted ProtectableDropdown to clean up Project#open_branches 2017-04-03 17:19:53 +01:00
policies spec the new behavior of .class_for 2017-03-09 11:49:53 -08:00
presenters Added test case for the avaiable project keys 2017-03-06 14:42:04 -06:00
requests Merge branch 'fix/regressions-in-ci-v4-api' into 'master' 2017-03-20 12:57:03 +00:00
routing Implement OpenID Connect identity provider 2017-03-07 14:54:35 +01:00
rubocop/cop Add cop to ensure reversibility of add_concurrent_index 2017-03-07 10:09:01 -06:00
serializers Revert "Enable Style/DotPosition" 2017-02-23 09:33:19 -06:00
services Extract ProtectedRef Concern 2017-04-03 17:19:53 +01:00
support Add a new have_html_escaped_body_text that match an HTML-escaped text 2017-03-17 12:20:54 +01:00
tasks Merge branch '28447-hybrid-repository-storages' into 'master' 2017-03-07 16:55:03 +00:00
uploaders Handle relative and absolute Upload paths in the Uploaders 2017-03-06 14:41:10 -05:00
views Adds pipeline mini-graph to system information box in Commit View 2017-03-16 00:44:31 +00:00
workers All CI offline migrations 2017-03-17 23:06:11 +00:00
factories_spec.rb
rails_helper.rb
rake_helper.rb
simplecov_env.rb Futher rename the CI variables 2017-03-16 08:49:01 +01:00
spec_helper.rb Retry only on feature specs that use JS, on CI 2017-03-13 17:33:17 +01:00