summaryrefslogtreecommitdiff
path: root/app/models/deployment.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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