Commit Graph

24 Commits

Author SHA1 Message Date
Mayra Cabrera 7e9348f359 Enable/disable Auto DevOps at Group level
- Includes instance methods on Group model to detect when a group has
AutoDevOps explicitly/implicitly enabled/disabled.
- Includes migration to add a new column to namespaces table
- Add UI necessary modifications
- Add service and controller to update auto devops
related instances
- Updates project and groups auto devops badges

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52447
2019-03-12 10:15:33 +00:00
Mayra Cabrera d9af3752fc Addresses UX and BE comments:
- Changes help text on clusters form to make it more explicit.
- Removes unnecessary warnings on auto devops form
- Simplifies cluster methods logic
2019-02-06 21:51:48 -06:00
Mayra Cabrera 8ff73614a1 Moves domain setting to Cluster setting
Changes domain field to be on the Cluster page show, removing it from
Auto DevOps setting. Also injects the new environment variable
KUBE_INGRESS_BASE_DOMAIN into kubernetes#predefined_variables.

Migration to move the information from ProjectAutoDevops#domain
to Clusters::Cluster#domain. As well as necessary modifications to qa
selectors

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52363
2019-02-04 11:43:34 -06:00
Yorick Peterse 2039c8280d
Disable existing offenses for the CodeReuse cops
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
gfyoung 1993a4449a Enable frozen string for app/helpers/**/*.rb
Partially addresses #47424.
2018-09-06 17:33:46 -07:00
Dylan Griffith 46eeaafc25 Display help text below auto devops domain with nip.io domain name (#45561) 2018-05-15 10:36:57 +02:00
Matija Čupić effb96b985
Refactor AutoDevopsHelper.missing_auto_devops_domain? 2018-02-02 23:06:13 +01:00
Matija Čupić 3443f3eb12
Rename AutoDevopsHelper helper methods 2018-02-02 19:54:00 +01:00
Matija Čupić c120b7a1fe
Fix AutoDevOpsHelper helper methods 2018-02-02 01:21:56 +01:00
Matija Čupić a31539847f
Add specs for .auto_devops_warning_message 2018-02-01 23:29:11 +01:00
Fabio Busatto 9eed610f9a Resolve "Link to Clusters in Auto DevOps instead of Kubernetes service" 2018-01-25 09:27:10 +00:00
bikebilly 89d3fcd193 Remove Auto DevOps checkboxes - backend 2017-12-04 17:47:38 +01:00
Grzegorz Bizon feece77132 Merge branch '38668-revert-copied-kubernetesservice-logic' into 'master'
Copy `KubernetesService` logic in `Clusters::Platforms::Kubernetes` to make it interchangeable. And implement a selector.

See merge request gitlab-org/gitlab-ce!15515
2017-11-30 11:01:14 +00:00
Matija Čupić a4a389a0a7 BE for automatic pipeline when enabling Auto DevOps
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/38962
2017-11-28 12:42:08 -06:00
Shinya Maeda 53da3d976f Replce kubernetes_service and deployment_service to deployment_platform 2017-11-28 20:47:59 +09:00
Kamil Trzcinski 95eba3aa8a Improve after code-review 2017-09-19 19:43:23 +02:00
bokebilly 3017697701 Add warning message if domain or cluster are not configured 2017-09-19 15:32:31 +02:00
Zeger-Jan van de Weg eeeea489fb
AutoDevOps banner hidden on explicit CI config
Extends the helper method to no show the banner as soon as the project
has a `.gitlab-ci.yml` file on the default branch.

Fixes gitlab-org/gitlab-ce#37652
2017-09-13 11:36:04 +02:00
Zeger-Jan van de Weg b1d5186d0a
Allow all AutoDevOps banners to be disabled
Given the default in the development and production environment is
false, the negation of enabling is used in the flag to signal you'd turn
it off. It reads a bit awkward, but makes us have a migration less.

Fixes gitlab-org/gitlab-ce#37653
2017-09-12 14:22:56 +02:00
Kamil Trzcinski 83c1bb688c Add has_auto_devops_implicitly_disabled 2017-09-07 15:08:51 +02:00
Filipa Lacerda d02f36d63c Fixes rubocop offenses 2017-09-07 12:23:05 +01:00
Kamil Trzcinski fd428a2c1f Fix AutoDevopsHelper settings 2017-09-05 17:04:24 +02:00
Kamil Trzcinski 440e93114e Fix spelling of AutoDevopsHelper 2017-09-05 15:39:19 +02:00
Kamil Trzcinski 2f74400314 Properly decide when to show Auto DevOps banner
- Only if user can manage project,
- When Auto DevOps is not enabled,
- When project configuration is set to implicit
2017-09-05 13:35:31 +02:00