Commit Graph

24 Commits

Author SHA1 Message Date
GitLab Bot c2fcfe515f Add latest changes from gitlab-org/gitlab@master 2020-10-13 00:08:42 +00:00
GitLab Bot ff430539d5 Add latest changes from gitlab-org/gitlab@master 2020-07-13 15:09:08 +00:00
GitLab Bot c52b72f577 Add latest changes from gitlab-org/gitlab@master 2020-07-08 12:09:33 +00:00
GitLab Bot 0a319374e7 Add latest changes from gitlab-org/gitlab@master 2020-07-08 06:09:13 +00:00
GitLab Bot 0e1a6f6a2b Add latest changes from gitlab-org/gitlab@master 2020-05-12 09:09:31 +00:00
GitLab Bot 2e3cbf7d89 Add latest changes from gitlab-org/gitlab@master 2019-12-12 00:07:43 +00:00
GitLab Bot 23d237110e Add latest changes from gitlab-org/gitlab@master 2019-11-26 09:08:36 +00:00
GitLab Bot 213ce78058 Add latest changes from gitlab-org/gitlab@master 2019-11-13 06:06:38 +00:00
GitLab Bot 1ef4b65f55 Add latest changes from gitlab-org/gitlab@master 2019-11-08 06:06:24 +00:00
GitLab Bot b7dfe2ae40 Add latest changes from gitlab-org/gitlab@master 2019-09-13 13:26:31 +00:00
Enrique Alcántara 90e3a4919f Create new feature flagged UI for cloud providers
- Create HAML UI select a cloud provider to create a cluster.
- Add query param to :new cluster view to display a specific cluster
provider form depending on the value of the provider query param.
- Update unit tests and e2e tests to reflect these changes
2019-09-09 20:27:51 +00:00
Thong Kuah 1894c6ebe8 Add facade which will always return nil in CE
This method will be overridden in EE
2019-09-03 11:29:57 +12:00
Dylan Griffith dacd0ee18b Refactor: model errors for multi cluster validation
The current approach requires catching exceptions to handle these errors
and callers are already handling model validations so it seems more
appropriate.  Also it seemed to convoluted to add this logic directly to
the model since the model needs to check too many possible associations
to determine whether or not there are more than one cluster since the
model doesn't know what it's being created on. Additionally we only
wanted to validate during create to avoid the risk of existing models
becoming invalid by many different edge cases.
2019-07-11 17:22:58 +10:00
James Fargher f07d445b0c Remove duplicate clusterable presenter method 2019-05-07 08:49:27 +12:00
Peter Leitzen c8a530a319 Show health graphs on group-level
Tweak cluster helper and refactor its specs.
2019-05-06 16:24:14 +00:00
João Cunha 1186a6fd54 Sends update route to the client
- extends presenters to include update endpoint path
- sends path to the client on clusters clusters show view.
2019-03-05 08:32:51 +02:00
Mayra Cabrera 01ed3a1511 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
2018-12-24 10:28:40 -06:00
Thong Kuah ecb4a29fc0 Reverse view override as EE has an override too
Use presenters instead otherwise we will have x2 overides in EE
2018-11-08 23:28:30 +13:00
Thong Kuah b019224ff2 Refactor to use presenter
Refacotr project or group specific `if` logic to be contained within
each presenter instead.

Also add :override to ensure super method exists.
2018-11-08 23:28:30 +13:00
Mike Greiling 83b8321aea Rename is_project? to project? 2018-11-08 23:28:30 +13:00
Mike Greiling 1dba5dbc3a Update empty state for group clusters index 2018-11-08 23:28:30 +13:00
Thong Kuah fec21f5542 Use polymorphic_paths where we can
To reduce the number of abstract methods, use polymorphic_paths for
collection routes. Unfortunately for member routes, polymorphic_paths
does not support namespaced classes, so still continue to override
methods.
2018-11-02 10:41:53 +13:00
Thong Kuah 3e7d483173 Add missing specs for Presenter
Also add missing interface in abstract class.
2018-11-02 09:49:52 +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