Commit Graph

10 Commits

Author SHA1 Message Date
Heinrich Lee Yu 1ce5bcacdb Remove code related to object hierarchy in MySQL
These are not required because MySQL is not
supported anymore
2019-07-25 15:35:06 +08:00
Jacques Erasmus 3c913df28e Add changelog entry
Added a changelog entry for the feature
2019-05-27 08:23:17 +00:00
James Fargher 733da6d6a0 Instance level kubernetes clusters admin
Instance level clusters were already mostly supported, this change adds
admin area controllers for cluster CRUD
2019-05-07 08:37:03 +12:00
Mayra Cabrera ab06d1eda2 Renames Cluster#managed? to provided_by_user?
This will allow to user the term managed? on
https://gitlab.com/gitlab-org/gitlab-ce/issues/56557. Managed? will be
used to distinct clusters that are automatically managed by GitLab
2019-03-29 18:23:18 +00:00
Thong Kuah 0e78834bc9 Move code to presenter
Part of the code such as #show_path is already present on the presenter.
Also avoid having code in two places (helper and presenter)

Sanitize and assert html_safe. Additional layer of defense - on top of
GitLab already requiring group names to be composed of small set of
chars A-Z, - and spaces.

Only link to cluster if user can read cluster

Make clear that arg is a GroupClusterablePresenter

Add more specs for completeness
2018-12-17 09:51:53 +13:00
Thong Kuah 459758921f Move description of cluster type to presenter 2018-12-13 20:53:15 +13:00
Thong Kuah 54e8ff0f21 Extend clusters_controller for group type clusters
- Add pages javascripts to intialize clusters for group pages

- Move specs asserting gcp specific validations from controller into
UpdateService spec

- Also teach Clusters::ApplicationController about groups
2018-11-08 23:14:06 +13:00
Thong Kuah 1163b23539 Move view and path concerns to presenters
- Move show path for cluster to ClusterPresenter

- Create ClusterablePresenter to encapsulate logic. Consolidates
scattered methods from BaseController and ClustersHelper into an object.
2018-11-01 19:37:32 +13:00
Matija Čupić 83648f243d
Move can_toggle_cluster? from helper to presenter 2017-12-05 17:09:04 +01:00
Shinya Maeda 944149ec16 spec for spec/presenters 2017-10-31 01:09:39 +09:00