summaryrefslogtreecommitdiff
path: root/app/models/deployment.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove unecessary validate: true from belongs_to :projectremove-unnecessary-validate-projectDylan Griffith2018-02-201-2/+2
| | | | This does not seem to serve any clear purpose and causes other issues (see https://gitlab.com/gitlab-org/gitlab-ce/issues/43196#note_59275652)
* Look for rugged with static analysislint-ruggedJacob Vosmaer2018-01-251-8/+1
|
* replace `is_ancestor?` with `ancestor?`Maxim Rydkin2017-08-291-1/+1
|
* Merge remote-tracking branch 'upstream/master' into ↵28717-additional-metrics-review-branchPawel Chojnacki2017-06-221-11/+11
|\ | | | | | | 28717-additional-metrics-review-branch
| * Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-11/+11
| |
* | Move Prometheus service to project modelPawel Chojnacki2017-06-161-6/+6
| |
* | Merge remote-tracking branch 'upstream/master' into ↵Pawel Chojnacki2017-06-161-1/+1
|\ \ | |/ | | | | 28717-additional-metrics-review-branch
| * Added Cop to blacklist polymorphic associationsYorick Peterse2017-06-071-1/+1
| | | | | | | | | | | | | | | | One should really use a separate table instead of using polymorphic associations. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11168 for more information.
* | Merge remote-tracking branch 'upstream/master' into ↵Pawel Chojnacki2017-06-071-0/+5
|\ \ | |/ | | | | | | | | | | | | 28717-additional-metrics-review-branch # Conflicts: # app/models/project_services/prometheus_service.rb # app/views/projects/services/_form.html.haml
| * Test etag caching router and incorporate reviewZ.J. van de Weg2017-05-241-0/+5
| |
* | Use explicit instance of prometheus service and add access methods to itPawel Chojnacki2017-06-071-6/+7
| |
* | Add per deployment additional metricsPawel Chojnacki2017-05-251-0/+10
|/
* Keep presentation logic in one place and remove unecessary arguments.Pawel Chojnacki2017-05-111-2/+1
| | | | + fix tests
* Custom queries for prometheusPawel Chojnacki2017-05-111-6/+2
| | | | | | | | | | | | - 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
* Merge request widget redesignFatih Acet2017-05-091-0/+15
|
* Take branch access into account when stopping environmentGrzegorz Bizon2017-04-061-2/+2
|
* Fix stoppable?Kamil Trzcinski2017-02-071-1/+1
|
* Only create refs for new deploymentszj-use-iid-deployment-refsZ.J. van de Weg2016-10-201-1/+1
| | | | | | This patch makes sure GitLab does not save the refs to the filesystem each time the deployment is updated. This will save some IO although I expect the impact to be minimal.
* Use deployment IID when saving refsZ.J. van de Weg2016-10-201-1/+1
|
* Improve after code reviewKamil Trzcinski2016-10-171-1/+2
|
* Add on_stop column [ci skip]Kamil Trzcinski2016-10-171-2/+0
|
* Refactor code to use available and stopped statuses and refactor views to ↵Kamil Trzcinski2016-10-171-8/+7
| | | | use separate renders
* Merge remote-tracking branch 'origin/master' into 22191-delete-dynamic-envs-mrKamil Trzcinski2016-10-171-1/+12
|\
| * Minor style improvementZ.J. van de Weg2016-10-141-0/+4
| |
| * Handle case where deployment ref no longer exists22655-deployments-don-t-always-have-keep-around-refsSean McGivern2016-10-131-1/+8
| | | | | | | | | | | | | | Keep-around refs for deployments were only introduced in 8.10, so any deployment created in 8.9 could have a SHA pointing to a commit that no longer exists in the repository. We can't do anything useful with those deployments, so make `#includes_commit?` always return false for those.
* | Initial support for closing environmentsKamil Trzcinski2016-10-061-0/+13
|/
* deployment refs in own folder, new method for creating refszj-save-environment-deployment-refsZ.J. van de Weg2016-10-041-2/+2
|
* Update method nameZeger-Jan van de Weg2016-10-041-1/+1
|
* Save a fetchable ref per deployementZ.J. van de Weg2016-10-041-2/+8
|
* Implement a second round of review comments from @DouweM.Timothy Andrew2016-09-211-15/+22
| | | | | | | | | | | | | | - Don't use `TableReferences` - using `.arel_table` is shorter! - Move some database-related code to `Gitlab::Database` - Remove the `MergeRequest#issues_closed` and `Issue#closed_by_merge_requests` associations. They were either shadowing or were too similar to existing methods. They are not being used anywhere, so it's better to remove them to reduce confusion. - Use Rails 3-style validations - Index for `MergeRequest::Metrics#first_deployed_to_production_at` - Only include `CycleAnalyticsHelpers::TestGeneration` for specs that need it. - Other minor refactorings.
* Fix rubocop spec.Timothy Andrew2016-09-201-1/+0
| | | | And `scss_lint`
* Implement (some) comments from @DouweM's review.Timothy Andrew2016-09-201-13/+10
| | | | | | - Move things common to `Issue` and `MergeRequest` into `Issuable` - Move more database-specific functions into `Gitlab::Database` - Indentation changes and other minor refactorings.
* Implement review comments from @yorickpeterseTimothy Andrew2016-09-201-0/+31
| | | | | | | | | | | | | | 1. Change multiple updates to a single `update_all` 2. Use cascading deletes 3. Extract an average function for the database median. 4. Move database median to `lib/gitlab/database` 5. Use `delete_all` instead of `destroy_all` 6. Minor refactoring
* Method names changed to #includes_commit?zj-deployment-status-on-mrZ.J. van de Weg2016-08-121-2/+1
|
* Incorporate feedbackZ.J. van de Weg2016-08-111-2/+2
|
* Show deployment status on a MR viewZ.J. van de Weg2016-08-111-0/+7
|
* Improve manual actions code and add model, service and feature testsKamil Trzcinski2016-07-181-1/+1
| | | | | | | | Manual actions are accessible from: - Pipelines - Builds - Environments - Deployments
* Rename playable_actions to manual_actionsKamil Trzcinski2016-07-181-2/+2
|
* Add implementation of manual actionsKamil Trzcinski2016-07-181-0/+4
|
* Support new diff notes on MRs with diff_refsDouwe Maan2016-07-061-0/+6
|
* Use validate and required for environment and projectKamil Trzcinski2016-06-151-2/+2
|
* Validate project and environment instead of only requiringKamil Trzcinski2016-06-151-2/+2
|
* Improve validationsKamil Trzcinski2016-06-151-4/+2
|
* Improve design after reviewKamil Trzcinski2016-06-141-5/+5
|
* Test environment controller specsKamil Trzcinski2016-06-141-0/+4
|
* Add specs for models and servicesKamil Trzcinski2016-06-141-0/+2
|
* Added initial version of deploymentsKamil Trzcinski2016-06-101-0/+25