Commit 763d1c84 authored by Dhiraj Bodicherla's avatar Dhiraj Bodicherla

Remove searchable envs dropdown feature flag

Environments dropdown in the monitoring dashboard will
have a search input to search for environments
parent 3688aa18
...@@ -239,9 +239,6 @@ export default { ...@@ -239,9 +239,6 @@ export default {
this.externalDashboardUrl.length this.externalDashboardUrl.length
); );
}, },
shouldRenderSearchableEnvironmentsDropdown() {
return this.glFeatures.searchableEnvironmentsDropdown;
},
shouldShowEnvironmentsDropdownNoMatchedMsg() { shouldShowEnvironmentsDropdownNoMatchedMsg() {
return !this.environmentsLoading && this.filteredEnvironments.length === 0; return !this.environmentsLoading && this.filteredEnvironments.length === 0;
}, },
...@@ -407,7 +404,6 @@ export default { ...@@ -407,7 +404,6 @@ export default {
}}</gl-dropdown-header> }}</gl-dropdown-header>
<gl-dropdown-divider /> <gl-dropdown-divider />
<gl-search-box-by-type <gl-search-box-by-type
v-if="shouldRenderSearchableEnvironmentsDropdown"
ref="monitorEnvironmentsDropdownSearch" ref="monitorEnvironmentsDropdownSearch"
class="m-2" class="m-2"
@input="debouncedEnvironmentsSearch" @input="debouncedEnvironmentsSearch"
...@@ -428,7 +424,6 @@ export default { ...@@ -428,7 +424,6 @@ export default {
> >
</div> </div>
<div <div
v-if="shouldRenderSearchableEnvironmentsDropdown"
v-show="shouldShowEnvironmentsDropdownNoMatchedMsg" v-show="shouldShowEnvironmentsDropdownNoMatchedMsg"
ref="monitorEnvironmentsDropdownMsg" ref="monitorEnvironmentsDropdownMsg"
class="text-secondary no-matches-message" class="text-secondary no-matches-message"
......
...@@ -62,8 +62,6 @@ export const metricsWithData = state => groupKey => { ...@@ -62,8 +62,6 @@ export const metricsWithData = state => groupKey => {
* Filter environments by names. * Filter environments by names.
* *
* This is used in the environments dropdown with searchable input. * This is used in the environments dropdown with searchable input.
* Also, this searchable dropdown is behind `searchable_environments_dropdown`
* feature flag
* *
* @param {Object} state * @param {Object} state
* @returns {Array} List of environments * @returns {Array} List of environments
......
...@@ -14,7 +14,6 @@ class Projects::EnvironmentsController < Projects::ApplicationController ...@@ -14,7 +14,6 @@ class Projects::EnvironmentsController < Projects::ApplicationController
before_action :expire_etag_cache, only: [:index], unless: -> { request.format.json? } before_action :expire_etag_cache, only: [:index], unless: -> { request.format.json? }
before_action only: [:metrics, :additional_metrics, :metrics_dashboard] do before_action only: [:metrics, :additional_metrics, :metrics_dashboard] do
push_frontend_feature_flag(:prometheus_computed_alerts) push_frontend_feature_flag(:prometheus_computed_alerts)
push_frontend_feature_flag(:searchable_environments_dropdown)
end end
before_action do before_action do
push_frontend_feature_flag(:auto_stop_environments) push_frontend_feature_flag(:auto_stop_environments)
......
---
title: Enable search and filter in environments dropdown in monitoring dashboard
merge_request: 23942
author:
type: added
...@@ -255,9 +255,6 @@ describe('Dashboard', () => { ...@@ -255,9 +255,6 @@ describe('Dashboard', () => {
{ {
attachToDocument: true, attachToDocument: true,
stubs: ['graph-group', 'panel-type'], stubs: ['graph-group', 'panel-type'],
provide: {
glFeatures: { searchableEnvironmentsDropdown: true },
},
}, },
); );
......
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