Skip to content
Snippets Groups Projects

Add ability to clean up stale environments

Merged Allen Cook requested to merge 19724-ui-stop-stale-environments into master
1 unresolved thread
10 files
+ 96
7
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -113,7 +113,7 @@ export default {
return this.environmentApp?.reviewApp?.canSetupReviewApp;
},
canCleanUpEnvs() {
return true;
return gon.features?.stopStaleEnvironments && this.environmentApp?.canStopStaleEnvironments;
},
folders() {
return this.environmentApp?.environments?.filter((e) => e.size > 1) ?? [];
@@ -165,7 +165,7 @@ export default {
return {
text: this.$options.i18n.cleanUpEnvsButtonLabel,
attributes: {
category: 'tertiary',
category: 'secondary',
variant: 'confirm',
},
};
@@ -254,13 +254,13 @@ export default {
<confirm-rollback-modal :environment="environmentToRollback" graphql />
<canary-update-modal :environment="environmentToChangeCanary" :weight="weight" />
<gl-tabs
:action-secondary="addEnvironment"
:action-primary="openReviewAppModal"
:action-tertiary="openCleanUpEnvsModal"
:action-secondary="openReviewAppModal"
:action-primary="openCleanUpEnvsModal"
:action-tertiary="addEnvironment"
sync-active-tab-with-query-params
query-param-name="scope"
@primary="showReviewAppModal"
@tertiary="showCleanUpEnvsModal"
@secondary="showReviewAppModal"
@primary="showCleanUpEnvsModal"
>
<gl-tab
:query-param-value="$options.ENVIRONMENTS_SCOPE.AVAILABLE"
Loading