gitlab-org--gitlab-foss/app/models
Rémy Coutable f0c7e6713f Merge branch '22191-delete-dynamic-envs-mr' into 'master'
Delete dynamic environments

- Adds "close environment" action to a merge request
- Adds tabs to environments list
- Adds close button to each environment row in environments list
- Replaces Destroy button with Close button inside an environment
- Adds close button to builds list inside an environment

#### Configuration

In order to enable stopping environments a valid `.gitlab-ci.yml` syntax has to be used:

```
review:
  environment:
    name: review/$app
    on_stop: stop_review

stop_review:
  script: echo Delete My App
  when: manual
  environment:
    name: review/$app
    action: stop
```

This MR requires that `stop_review` has to have: `when`, `environment:name` and `environment:action` defined.
The next MR after this one will verify that and enforce that these settings are configured.

It will also implicitly configure these settings, making it possible to define it like this:

```
review:
  environment:
    name: review/$app
    on_stop: stop_review

stop_review:
  script: echo Delete My App
```

Closes #22191 

See merge request !6669
2016-10-19 07:53:05 +00:00
..
ci Merge branch 'pipeline-emails' into 'master' 2016-10-18 16:56:13 +00:00
concerns Move build order array to HasStatus module 2016-10-18 08:29:29 -05:00
cycle_analytics Fix the "Commits" section of the cycle analytics summary. 2016-09-26 18:38:40 +05:30
hooks Scope hooks thal will run for confidential issues 2016-08-31 18:34:45 -03:00
issue Implement (some) comments from @DouweM's review. 2016-09-20 18:13:11 +05:30
members Allow Member.add_user to handle access requesters 2016-09-28 09:43:00 +02:00
merge_request Implement (some) comments from @DouweM's review. 2016-09-20 18:13:11 +05:30
network
project_services Use any? instead of count > 0, feedback: 2016-10-13 01:12:00 +08:00
protected_branch
.gitkeep
ability.rb
abuse_report.rb Add markdown cache columns to the database, but don't use them yet 2016-10-07 02:54:25 +01:00
appearance.rb Add markdown cache columns to the database, but don't use them yet 2016-10-07 02:54:25 +01:00
application_setting.rb Add markdown cache columns to the database, but don't use them yet 2016-10-07 02:54:25 +01:00
audit_event.rb
award_emoji.rb
blob.rb Handle encoding in non-binary Blob instances 2016-09-14 14:15:31 +02:00
board.rb Improve project_with_board factory to create the default lists 2016-09-26 14:42:38 -03:00
broadcast_message.rb Add markdown cache columns to the database, but don't use them yet 2016-10-07 02:54:25 +01:00
commit.rb Fix Commit#status, feedback: 2016-09-14 01:25:26 +08:00
commit_range.rb Enable Lint/StringConversionInInterpolation cop and autocorrect offenses 2016-10-03 16:09:57 +02:00
commit_status.rb Do not return from proc-closure in pipeline transition 2016-10-12 15:21:11 +02:00
compare.rb Refactor straight compare diff code 2016-10-12 16:32:57 +03:00
cycle_analytics.rb updated var name based on feedback 2016-10-13 09:19:30 +02:00
deploy_key.rb Refactor LFS token logic to use a Redis key instead of a DB field, making it a 1 use only token. 2016-09-15 12:21:00 -05:00
deploy_keys_project.rb
deployment.rb Improve after code review 2016-10-17 16:13:19 +02:00
diff_note.rb Optimize discussion notes resolving and unresolving 2016-09-06 12:14:09 -03:00
discussion.rb Optimize discussion notes resolving and unresolving 2016-09-06 12:14:09 -03:00
email.rb
environment.rb Add `stop!` to `environment` 2016-10-18 12:02:50 +02:00
event.rb Make guests unable to view MRs 2016-10-11 16:51:26 +03:00
external_issue.rb
forked_project_link.rb
generic_commit_status.rb
global_label.rb Add markdown cache columns to the database, but don't use them yet 2016-10-07 02:54:25 +01:00
global_milestone.rb Add markdown cache columns to the database, but don't use them yet 2016-10-07 02:54:25 +01:00
group.rb Allow Member.add_user to handle access requesters 2016-09-28 09:43:00 +02:00
identity.rb
issue.rb Use the `IssuableBaseService` lifecycle hooks to cache `MergeRequestsClosingIssues` 2016-09-21 01:22:20 +05:30
key.rb
label.rb Add markdown cache columns to the database, but don't use them yet 2016-10-07 02:54:25 +01:00
label_link.rb
legacy_diff_note.rb
lfs_object.rb
lfs_objects_project.rb
list.rb
member.rb Make Member#add_user set access_level for requesters 2016-10-03 11:24:16 +02:00
merge_request.rb Merge branch 'master' into merge-conflicts-editor-2 2016-10-17 10:56:55 +01:00
merge_request_diff.rb Refactor straight compare diff code 2016-10-12 16:32:57 +03:00
merge_requests_closing_issues.rb Implement a second round of review comments from @DouweM. 2016-09-21 00:47:37 +05:30
milestone.rb Add markdown cache columns to the database, but don't use them yet 2016-10-07 02:54:25 +01:00
namespace.rb Correct namespace validation to forbid bad names #21077 2016-10-07 13:46:59 -05:00
note.rb Use CacheMarkdownField for notes 2016-10-07 02:54:26 +01:00
notification_setting.rb Split notification integration into another branch 2016-09-14 19:34:24 +08:00
oauth_access_token.rb
personal_access_token.rb
personal_snippet.rb
project.rb Merge branch '22191-delete-dynamic-envs-mr' into 'master' 2016-10-19 07:53:05 +00:00
project_feature.rb Add visibility level to project repository 2016-10-17 18:12:18 -02:00
project_group_link.rb Merge branch 'api-fix-project-group-sharing' into 'security' 2016-10-11 20:36:26 +02:00
project_import_data.rb
project_snippet.rb
project_team.rb Allow Member.add_user to handle access requesters 2016-09-28 09:43:00 +02:00
project_wiki.rb
protected_branch.rb
release.rb Add markdown cache columns to the database, but don't use them yet 2016-10-07 02:54:25 +01:00
repository.rb Refactor ci_status on MergeRequestController 2016-10-14 11:07:01 +02:00
security_event.rb
sent_notification.rb
service.rb Merge remote-tracking branch 'upstream/master' into pipeline-emails 2016-10-08 07:51:07 +00:00
snippet.rb Add markdown cache columns to the database, but don't use them yet 2016-10-07 02:54:25 +01:00
spam_log.rb
subscription.rb
todo.rb
tree.rb
trending_project.rb Precalculate trending projects 2016-10-10 12:27:08 +02:00
u2f_registration.rb
user.rb Add a safeguard in User#set_projects_limit 2016-10-11 10:21:26 +02:00
user_agent_detail.rb
users_star_project.rb
wiki_page.rb