Commit 4e59e7f2 authored by Igor Drozdov's avatar Igor Drozdov

Merge branch '297659-remove-unused-deploy-board-callout-data' into 'master'

Remove unused frontend variables from environments page

See merge request gitlab-org/gitlab!52763
parents 620bf1c9 c390caca
...@@ -26,26 +26,6 @@ export default { ...@@ -26,26 +26,6 @@ export default {
type: Boolean, type: Boolean,
required: true, required: true,
}, },
deployBoardsHelpPath: {
type: String,
required: false,
default: '',
},
helpCanaryDeploymentsPath: {
type: String,
required: false,
default: '',
},
lockPromotionSvgPath: {
type: String,
required: false,
default: '',
},
userCalloutsPath: {
type: String,
required: false,
default: '',
},
}, },
methods: { methods: {
onChangePage(page) { onChangePage(page) {
...@@ -62,14 +42,7 @@ export default { ...@@ -62,14 +42,7 @@ export default {
<slot name="empty-state"></slot> <slot name="empty-state"></slot>
<div v-if="!isLoading && environments.length > 0" class="table-holder"> <div v-if="!isLoading && environments.length > 0" class="table-holder">
<environment-table <environment-table :environments="environments" :can-read-environment="canReadEnvironment" />
:environments="environments"
:can-read-environment="canReadEnvironment"
:user-callouts-path="userCalloutsPath"
:lock-promotion-svg-path="lockPromotionSvgPath"
:help-canary-deployments-path="helpCanaryDeploymentsPath"
:deploy-boards-help-path="deployBoardsHelpPath"
/>
<table-pagination <table-pagination
v-if="pagination && pagination.totalPages > 1" v-if="pagination && pagination.totalPages > 1"
......
...@@ -44,11 +44,6 @@ export default { ...@@ -44,11 +44,6 @@ export default {
type: Object, type: Object,
required: true, required: true,
}, },
deployBoardsHelpPath: {
type: String,
required: false,
default: '',
},
isLoading: { isLoading: {
type: Boolean, type: Boolean,
required: true, required: true,
......
...@@ -51,30 +51,10 @@ export default { ...@@ -51,30 +51,10 @@ export default {
type: String, type: String,
required: true, required: true,
}, },
helpCanaryDeploymentsPath: {
type: String,
required: false,
default: '',
},
helpPagePath: { helpPagePath: {
type: String, type: String,
required: true, required: true,
}, },
deployBoardsHelpPath: {
type: String,
required: false,
default: '',
},
lockPromotionSvgPath: {
type: String,
required: false,
default: '',
},
userCalloutsPath: {
type: String,
required: false,
default: '',
},
}, },
created() { created() {
...@@ -195,10 +175,6 @@ export default { ...@@ -195,10 +175,6 @@ export default {
:environments="state.environments" :environments="state.environments"
:pagination="state.paginationInformation" :pagination="state.paginationInformation"
:can-read-environment="canReadEnvironment" :can-read-environment="canReadEnvironment"
:user-callouts-path="userCalloutsPath"
:lock-promotion-svg-path="lockPromotionSvgPath"
:help-canary-deployments-path="helpCanaryDeploymentsPath"
:deploy-boards-help-path="deployBoardsHelpPath"
@onChangePage="onChangePage" @onChangePage="onChangePage"
> >
<template v-if="!isLoading && state.environments.length === 0" #empty-state> <template v-if="!isLoading && state.environments.length === 0" #empty-state>
......
...@@ -23,31 +23,11 @@ export default { ...@@ -23,31 +23,11 @@ export default {
required: true, required: true,
default: () => [], default: () => [],
}, },
deployBoardsHelpPath: {
type: String,
required: false,
default: '',
},
canReadEnvironment: { canReadEnvironment: {
type: Boolean, type: Boolean,
required: false, required: false,
default: false, default: false,
}, },
helpCanaryDeploymentsPath: {
type: String,
required: false,
default: '',
},
lockPromotionSvgPath: {
type: String,
required: false,
default: '',
},
userCalloutsPath: {
type: String,
required: false,
default: '',
},
}, },
data() { data() {
return { return {
...@@ -189,7 +169,6 @@ export default { ...@@ -189,7 +169,6 @@ export default {
<div class="deploy-board-container"> <div class="deploy-board-container">
<deploy-board <deploy-board
:deploy-board-data="model.deployBoardData" :deploy-board-data="model.deployBoardData"
:deploy-boards-help-path="deployBoardsHelpPath"
:is-loading="model.isLoadingDeployBoard" :is-loading="model.isLoadingDeployBoard"
:is-empty="model.isEmptyDeployBoard" :is-empty="model.isEmptyDeployBoard"
:logs-path="model.logs_path" :logs-path="model.logs_path"
......
...@@ -34,21 +34,6 @@ export default { ...@@ -34,21 +34,6 @@ export default {
type: Boolean, type: Boolean,
required: true, required: true,
}, },
userCalloutsPath: {
type: String,
required: false,
default: '',
},
lockPromotionSvgPath: {
type: String,
required: false,
default: '',
},
helpCanaryDeploymentsPath: {
type: String,
required: false,
default: '',
},
}, },
methods: { methods: {
successCallback(resp) { successCallback(resp) {
...@@ -88,9 +73,6 @@ export default { ...@@ -88,9 +73,6 @@ export default {
:environments="state.environments" :environments="state.environments"
:pagination="state.paginationInformation" :pagination="state.paginationInformation"
:can-read-environment="canReadEnvironment" :can-read-environment="canReadEnvironment"
:user-callouts-path="userCalloutsPath"
:lock-promotion-svg-path="lockPromotionSvgPath"
:help-canary-deployments-path="helpCanaryDeploymentsPath"
@onChangePage="onChangePage" @onChangePage="onChangePage"
/> />
</div> </div>
......
...@@ -30,7 +30,6 @@ export default () => { ...@@ -30,7 +30,6 @@ export default () => {
endpoint: environmentsData.environmentsDataEndpoint, endpoint: environmentsData.environmentsDataEndpoint,
newEnvironmentPath: environmentsData.newEnvironmentPath, newEnvironmentPath: environmentsData.newEnvironmentPath,
helpPagePath: environmentsData.helpPagePath, helpPagePath: environmentsData.helpPagePath,
deployBoardsHelpPath: environmentsData.deployBoardsHelpPath,
canCreateEnvironment: parseBoolean(environmentsData.canCreateEnvironment), canCreateEnvironment: parseBoolean(environmentsData.canCreateEnvironment),
canReadEnvironment: parseBoolean(environmentsData.canReadEnvironment), canReadEnvironment: parseBoolean(environmentsData.canReadEnvironment),
}; };
...@@ -41,7 +40,6 @@ export default () => { ...@@ -41,7 +40,6 @@ export default () => {
endpoint: this.endpoint, endpoint: this.endpoint,
newEnvironmentPath: this.newEnvironmentPath, newEnvironmentPath: this.newEnvironmentPath,
helpPagePath: this.helpPagePath, helpPagePath: this.helpPagePath,
deployBoardsHelpPath: this.deployBoardsHelpPath,
canCreateEnvironment: this.canCreateEnvironment, canCreateEnvironment: this.canCreateEnvironment,
canReadEnvironment: this.canReadEnvironment, canReadEnvironment: this.canReadEnvironment,
}, },
......
...@@ -6,5 +6,4 @@ ...@@ -6,5 +6,4 @@
"can-create-environment" => can?(current_user, :create_environment, @project).to_s, "can-create-environment" => can?(current_user, :create_environment, @project).to_s,
"new-environment-path" => new_project_environment_path(@project), "new-environment-path" => new_project_environment_path(@project),
"help-page-path" => help_page_path("ci/environments/index.md"), "help-page-path" => help_page_path("ci/environments/index.md"),
"deploy-boards-help-path" => help_page_path("user/project/deploy_boards", anchor: "enabling-deploy-boards"),
"project-path" => @project.full_path } } "project-path" => @project.full_path } }
...@@ -4,28 +4,6 @@ module EE ...@@ -4,28 +4,6 @@ module EE
module EnvironmentsHelper module EnvironmentsHelper
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
override :environments_list_data
def environments_list_data
ee_environments_list_data = {
"user_callouts_path" => user_callouts_path,
"lock_promotion_svg_path" => image_path('illustrations/lock_promotion.svg'),
"help_canary_deployments_path" => help_page_path('user/project/canary_deployments')
}
super.merge(ee_environments_list_data)
end
override :environments_folder_list_view_data
def environments_folder_list_view_data
ee_environments_folder_list_view_data = {
"user_callouts_path" => user_callouts_path,
"lock_promotion_svg_path" => image_path('illustrations/lock_promotion.svg'),
"help_canary_deployments_path" => help_page_path('user/project/canary_deployments')
}
super.merge(ee_environments_folder_list_view_data)
end
override :project_metrics_data override :project_metrics_data
def project_metrics_data(project) def project_metrics_data(project)
ee_metrics_data = {} ee_metrics_data = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment