-
- Downloads
Allow users to add cluster with ancestors
Include a new policy in Clusterables (projects and groups), which checks if another cluster can be added clusterable_has_cluster? and multiple_clusters_available private methods will be overriden in EE Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/34758
Showing
- app/policies/concerns/clusterable_actions.rb 14 additions, 0 deletionsapp/policies/concerns/clusterable_actions.rb
- app/policies/group_policy.rb 9 additions, 1 deletionapp/policies/group_policy.rb
- app/policies/project_policy.rb 7 additions, 0 deletionsapp/policies/project_policy.rb
- app/presenters/clusterable_presenter.rb 4 additions, 0 deletionsapp/presenters/clusterable_presenter.rb
- app/views/clusters/clusters/_buttons.html.haml 1 addition, 2 deletionsapp/views/clusters/clusters/_buttons.html.haml
- app/views/clusters/clusters/_empty_state.html.haml 1 addition, 1 deletionapp/views/clusters/clusters/_empty_state.html.haml
- changelogs/unreleased/34758-extend-can-create-cluster-logic.yml 5 additions, 0 deletions...logs/unreleased/34758-extend-can-create-cluster-logic.yml
- spec/policies/group_policy_spec.rb 12 additions, 1 deletionspec/policies/group_policy_spec.rb
- spec/policies/project_policy_spec.rb 11 additions, 1 deletionspec/policies/project_policy_spec.rb
- spec/presenters/clusterable_presenter_spec.rb 64 additions, 0 deletionsspec/presenters/clusterable_presenter_spec.rb
- spec/support/shared_examples/policies/clusterable_shared_examples.rb 37 additions, 0 deletions...t/shared_examples/policies/clusterable_shared_examples.rb
app/policies/concerns/clusterable_actions.rb
0 → 100644
Please register or sign in to comment