e805a64700
!581 has a lot of changes that would cause merge conflicts if not properly backported to CE. This commit/MR serves as a better foundation for gitlab-org/gitlab-ee!581. = Changes = 1. Move from `has_one {merge,push}_access_level` to `has_many`, with the `length` of the association limited to `1`. This is _effectively_ a `has_one` association, but should cause less conflicts with EE, which is set to `has_many`. This has a number of related changes in the views, specs, and factories. 2. Make `gon` variable loading more consistent (with EE!581) in the `ProtectedBranchesController`. Also use `::` to prefix the `ProtectedBranches` services, because this is required in EE. 3. Extract a `ProtectedBranchAccess` concern from the two access level models. This concern only has a single `humanize` method here, but will have more methods in EE. 4. Add `form_errors` to the protected branches creation form. This is not strictly required for EE compatibility, but was an oversight nonetheless. |
||
---|---|---|
.. | ||
application_controller.rb | ||
artifacts_controller.rb | ||
avatars_controller.rb | ||
badges_controller.rb | ||
blame_controller.rb | ||
blob_controller.rb | ||
branches_controller.rb | ||
builds_controller.rb | ||
commit_controller.rb | ||
commits_controller.rb | ||
compare_controller.rb | ||
container_registry_controller.rb | ||
deploy_keys_controller.rb | ||
environments_controller.rb | ||
find_file_controller.rb | ||
forks_controller.rb | ||
git_http_client_controller.rb | ||
git_http_controller.rb | ||
graphs_controller.rb | ||
group_links_controller.rb | ||
hooks_controller.rb | ||
imports_controller.rb | ||
issues_controller.rb | ||
labels_controller.rb | ||
lfs_api_controller.rb | ||
lfs_storage_controller.rb | ||
merge_requests_controller.rb | ||
milestones_controller.rb | ||
network_controller.rb | ||
notes_controller.rb | ||
pipelines_controller.rb | ||
pipelines_settings_controller.rb | ||
project_members_controller.rb | ||
protected_branches_controller.rb | ||
raw_controller.rb | ||
refs_controller.rb | ||
releases_controller.rb | ||
repositories_controller.rb | ||
runner_projects_controller.rb | ||
runners_controller.rb | ||
services_controller.rb | ||
snippets_controller.rb | ||
tags_controller.rb | ||
todos_controller.rb | ||
tree_controller.rb | ||
triggers_controller.rb | ||
uploads_controller.rb | ||
variables_controller.rb | ||
wikis_controller.rb |