gitlab-org--gitlab-foss/app/models
Yorick Peterse b6a18f1093
Tweak checking branches in Project#open_branches
This changes 4 things:

1. Project#protected_branches_names has been renamed to
   Project#protected_branch_names.

2. Project#open_branches uses a Set for the branch names as checking
   values in a Set is faster than checking values in a (large) Array.

3. Some redundant code in Project#open_branches has been removed.

4. Project#protected_branch_names now uses #pluck instead of #map,
   removing the need for loading entire DB records into memory.
2016-04-29 22:44:08 +02:00
..
ci Merge branch 'ci-commit-as-pipeline' into 'master' 2016-04-21 08:10:37 +00:00
concerns Use a better message when milestone is newly created 2016-04-29 10:15:49 +01:00
hooks add slack notifications for wiki pages 2016-04-20 08:25:40 +08:00
members Small refactoring and cleanup of notification logic 2016-03-30 10:44:20 +02:00
network
project_services formatting and test structure 2016-04-20 08:25:41 +08:00
.gitkeep
ability.rb Fix documentation and improve permissions code 2016-04-18 11:12:28 -03:00
abuse_report.rb Clearify who deletes the user 2016-03-15 21:09:25 +01:00
appearance.rb Branded login page also in CE 2016-02-26 15:50:51 +01:00
application_setting.rb Add repository_checks_enabled setting 2016-04-12 16:21:23 +02:00
audit_event.rb
blob.rb Properly handle bigger files 2016-04-28 21:28:39 +02:00
broadcast_message.rb Change ttl to 1 minute 2016-01-29 13:39:33 -05:00
commit.rb Merge branch 'ci-commit-as-pipeline' into 'master' 2016-04-21 08:10:37 +00:00
commit_range.rb Memoize reference_pattern/link_reference_pattern 2016-04-01 11:13:30 +02:00
commit_status.rb Fix tests 2016-04-18 07:35:43 -04:00
deploy_key.rb
deploy_keys_project.rb
email.rb Re-add EmailValidator to avoid the repetition of format: { with: Devise.email_regexp } 2016-02-09 18:15:35 +01:00
event.rb Throttle the update of `project.last_activity_at` to 1 minute 2016-04-25 17:25:46 +02:00
external_issue.rb Merge branch 'master' into number_sign_for_external_issue_ref 2016-04-17 18:17:27 +02:00
forked_project_link.rb
generic_commit_status.rb
global_label.rb Updates from last code review. 2016-03-06 23:07:19 -05:00
global_milestone.rb Ruby fixes 2016-03-29 12:19:09 +01:00
group.rb Remove useless require 'file_size_validator' causing warnings 2016-04-19 11:40:16 +02:00
identity.rb
issue.rb Move Issue scopes from Issuable to Issue model 2016-04-20 15:43:32 -04:00
jira_issue.rb
key.rb Ensure "new SSH key" email do not ends up as dead Sidekiq jobs 2016-03-15 11:23:57 +01:00
label.rb Label text color comes from JSON 2016-04-20 17:00:12 +01:00
label_link.rb
lfs_object.rb
lfs_objects_project.rb
member.rb Reuse `User#notification_settings_for` when it's possible 2016-04-11 20:50:26 -03:00
merge_request.rb Merge branch 'ci-commit-as-pipeline' into 'master' 2016-04-21 08:10:37 +00:00
merge_request_diff.rb Get rid of more requires, which causes warnings when code is reloaded 2016-04-19 11:48:10 +02:00
milestone.rb Merge branch 'routing' into 'master' 2016-04-01 16:51:20 +00:00
namespace.rb Make Namespace.search case-insensitive 2016-03-11 15:25:24 -05:00
note.rb Remove useless require 'file_size_validator' causing warnings 2016-04-19 11:40:16 +02:00
notification_setting.rb Use Hash instead of Array on NotificationSetting#level enum 2016-04-11 10:23:40 -03:00
oauth_access_token.rb Add spec for deletion of authorized OAuth2 application 2016-04-14 07:24:58 -07:00
personal_snippet.rb Remove `Snippet#expires_at` 2016-03-05 18:12:17 -05:00
project.rb Tweak checking branches in Project#open_branches 2016-04-29 22:44:08 +02:00
project_group_link.rb Bring ProjectGroupLink model and migrations from EE 2016-03-11 17:47:05 +01:00
project_import_data.rb Remove useless require 'file_size_validator' causing warnings 2016-04-19 11:40:16 +02:00
project_snippet.rb Remove `Snippet#expires_at` 2016-03-05 18:12:17 -05:00
project_team.rb Allow users to access project shared with their group 2016-03-11 18:46:01 +01:00
project_wiki.rb Cache output of Repository#exists? 2016-03-19 21:54:08 +01:00
protected_branch.rb
release.rb
repository.rb Support supressing text file diffs on the default branch with .gitattributes 2016-04-29 12:45:15 +01:00
security_event.rb
sent_notification.rb
service.rb add slack notifications for wiki pages 2016-04-20 08:25:40 +08:00
snippet.rb Properly handle bigger files 2016-04-28 21:28:39 +02:00
spam_log.rb Refactor Admin::SpamLogsController to block user before destroying 2016-02-02 11:25:44 -02:00
spam_report.rb Support Akismet spam checking for creation of issues via API 2016-02-02 11:25:44 -02:00
subscription.rb Improving the original label-subscribing implementation 2016-03-15 18:22:02 +01:00
todo.rb Refactor `Todo#target` 2016-03-18 13:27:27 -03:00
tree.rb Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into lazy-blobs 2016-02-01 13:51:05 +01:00
user.rb Remove the Devise Async gem. 2016-04-26 10:41:48 -06:00
users_star_project.rb
wiki_page.rb add slack notifications for wiki pages 2016-04-20 08:25:40 +08:00