summaryrefslogtreecommitdiff
path: root/app/models/environment.rb
Commit message (Collapse)AuthorAgeFilesLines
* Added Cop to blacklist the use of `dependent:`Yorick Peterse2017-07-061-1/+1
| | | | | | | | This is allowed for existing instances so we don't end up 76 offenses right away, but for new code one should _only_ use this if they _have_ to remove non database data. Even then it's usually better to do this in a service class as this gives you more control over how to remove the data (e.g. in bulk).
* Create and use project path helpers that only need a project, no namespaceDouwe Maan2017-07-051-2/+1
|
* Merge branch 'zj-review-apps-usage-data' into 'master'Grzegorz Bizon2017-06-271-0/+1
|\ | | | | | | | | | | | | Add review apps to usage ping Closes #33171 See merge request !12185
| * Add in_review_folder to usage pingzj-review-apps-usage-dataZ.J. van de Weg2017-06-271-0/+1
| | | | | | | | | | | | | | | | As its hard to reliably check how many review apps there are on the clients machine, we start by checking where the type is `review`. This means the folder is called that way. This will lead to a seq scan on the table. However, this is done once a week, so the benefit of adding an index seems not to apply here.
* | Merge remote-tracking branch 'upstream/master' into ↵28717-additional-metrics-review-branchPawel Chojnacki2017-06-221-3/+3
|\ \ | | | | | | | | | 28717-additional-metrics-review-branch
| * | Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-3/+3
| | |
* | | Move Prometheus service to project modelPawel Chojnacki2017-06-161-6/+2
| | |
* | | Merge remote-tracking branch 'upstream/master' into ↵Pawel Chojnacki2017-06-161-1/+2
|\ \ \ | |/ / | | | | | | 28717-additional-metrics-review-branch
| * | Fix etag route missesZ.J. van de Weg2017-06-121-1/+2
| |/ | | | | | | Fixes gitlab-org/gitlab-ce#33106
* | Merge remote-tracking branch 'upstream/master' into ↵Pawel Chojnacki2017-06-071-0/+16
|\ \ | |/ | | | | | | | | | | | | 28717-additional-metrics-review-branch # Conflicts: # app/models/project_services/prometheus_service.rb # app/views/projects/services/_form.html.haml
| * Test etag cache key changing valueZ.J. van de Weg2017-05-311-2/+7
| |
| * Use etag caching for environments JSONZ.J. van de Weg2017-05-221-0/+11
| | | | | | | | | | | | | | | | For the index view, the environments can now be requested every 15 seconds. Any transition state of a projects environments will trigger a cache invalidation action. Fixes gitlab-org/gitlab-ce#31701
* | Use explicit instance of prometheus service and add access methods to itPawel Chojnacki2017-06-071-5/+9
| |
* | expand Namespaces:: and refactoring yaml parsing out of MetricGroup classPawel Chojnacki2017-06-061-1/+1
| |
* | Finalize refactoring additional metrics queryPawel Chojnacki2017-05-251-1/+3
| |
* | Additional metrics initial work, with working metrics listing, but without ↵Pawel Chojnacki2017-05-251-0/+8
|/ | | | actoual metrics mesurements
* Custom queries for prometheusPawel Chojnacki2017-05-111-1/+1
| | | | | | | | | | | | - Tests for prometheus queries - fix rubocop warnings - Remove unused method. Add more queries to deployment queries. - Wrap BaseQuery in module hierarchy Renname Prometheus class to PrometheusClient
* Enable the Style/TrailingCommaInLiteral copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Added Prometheus Service and Prometheus graphsKamil Trzciński2017-03-071-0/+8
|
* Use safe navigation operator to make rubocop happywinniehell2017-02-131-1/+1
|
* Merge branch 'route-map' into 'master' Robert Speicher2017-02-071-5/+22
|\ | | | | | | | | Add 'View on [env]' link to blobs and individual files in diffs See merge request !8867
| * Address feedbackDouwe Maan2017-02-061-1/+7
| |
| * Improve performance of finding last deployed environmentDouwe Maan2017-02-061-13/+7
| |
| * Fix XSS issue by not using URI.joinDouwe Maan2017-02-061-2/+1
| |
| * Add 'View on [env]' link to blobs and individual files in diffsDouwe Maan2017-02-061-0/+18
| |
* | Update changesKamil Trzcinski2017-02-061-4/+4
| |
* | Merge remote-tracking branch 'origin/master' into 24147-delete-env-buttonKamil Trzcinski2017-02-061-5/+13
|\ \ | |/
| * Avoid repeated dashes in $CI_ENVIRONMENT_SLUGNick Thomas2017-01-231-5/+13
| |
* | Merge remote-tracking branch 'origin/master' into 24147-delete-env-buttonKamil Trzcinski2017-01-241-8/+81
|\ \ | |/
| * Treat environments matching `production/*` as Production24139-production-wildcard-for-cycle-analyticsToon Claes2017-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For Cycle Analytics, the environment `production` is treated as a special case, and used to update the `first_deployed_to_production_at` metric. With the Review Apps changes, slash syntax is used to group related environments in the list. This is mostly used for `review/<branch>` environments, but it's possible for people to have multiple production environments, and someone might then want to group them like `production/eu`, `production/us`, or even just make it look prettier with `production/www.example.com`. In any of these cases, the first deploy to one of these `production/*` environments now is treated as a Production deploy.
| * Add terminals to the Kubernetes deployment serviceNick Thomas2016-12-191-0/+8
| |
| * Add $CI_ENVIRONMENT_NAME and $CI_ENVIRONMENT_SLUGNick Thomas2016-12-151-0/+7
| |
| * Add an environment slugNick Thomas2016-12-151-0/+50
| |
| * Use :maximum instead of :within for length validators with a 0..N range25209-improve-length-validatorsRémy Coutable2016-12-061-1/+1
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Introduce deploy command that allows to start deployment from one ↵chatops-deploy-commandKamil Trzcinski2016-11-211-2/+2
| | | | | | | | environment to second one
| * Add deploy chat command [ci skip]Kamil Trzcinski2016-11-211-1/+9
| |
| * Add specs for environments recently updated on branchGrzegorz Bizon2016-11-161-1/+1
| |
| * Refactor methods for environments in project modelGrzegorz Bizon2016-11-161-1/+1
| |
| * Select recently updated environments for auto-closeGrzegorz Bizon2016-11-151-0/+4
| |
| * Add feature tests for environments auto-closeGrzegorz Bizon2016-11-151-0/+1
| |
* | Allow to stop any environmentKamil Trzcinski2016-11-101-4/+9
|/
* Use deployment IID when saving refsZ.J. van de Weg2016-10-201-2/+2
|
* Add `stop!` to `environment`Kamil Trzcinski2016-10-181-0/+6
|
* Fix environments specsKamil Trzcinski2016-10-171-0/+3
|
* Improve after code reviewKamil Trzcinski2016-10-171-4/+5
|
* Refactor code to use available and stopped statuses and refactor views to ↵Kamil Trzcinski2016-10-171-10/+10
| | | | use separate renders
* Merge remote-tracking branch 'origin/master' into 22191-delete-dynamic-envs-mrKamil Trzcinski2016-10-171-0/+15
|\
| * Minor style improvementZ.J. van de Weg2016-10-141-1/+7
| |
| * Refactor ci_status on MergeRequestControllerZ.J. van de Weg2016-10-141-2/+3
| |
| * Show what time ago a MR was deployedZ.J. van de Weg2016-10-141-0/+8
| |