Commit e7f1506b authored by Michael Kozono's avatar Michael Kozono

Merge branch '34021-environments-dropdown-remove-feature-flag' into 'master'

Remove searchable environments dropdown feature flag

See merge request gitlab-org/gitlab!23942
parents c26add1e 996489d6
......@@ -235,9 +235,6 @@ export default {
this.externalDashboardUrl.length
);
},
shouldRenderSearchableEnvironmentsDropdown() {
return this.glFeatures.searchableEnvironmentsDropdown;
},
shouldShowEnvironmentsDropdownNoMatchedMsg() {
return !this.environmentsLoading && this.filteredEnvironments.length === 0;
},
......@@ -405,7 +402,6 @@ export default {
}}</gl-dropdown-header>
<gl-dropdown-divider />
<gl-search-box-by-type
v-if="shouldRenderSearchableEnvironmentsDropdown"
ref="monitorEnvironmentsDropdownSearch"
class="m-2"
@input="debouncedEnvironmentsSearch"
......@@ -426,7 +422,6 @@ export default {
>
</div>
<div
v-if="shouldRenderSearchableEnvironmentsDropdown"
v-show="shouldShowEnvironmentsDropdownNoMatchedMsg"
ref="monitorEnvironmentsDropdownMsg"
class="text-secondary no-matches-message"
......
......@@ -62,8 +62,6 @@ export const metricsWithData = state => groupKey => {
* Filter environments by names.
*
* This is used in the environments dropdown with searchable input.
* Also, this searchable dropdown is behind `searchable_environments_dropdown`
* feature flag
*
* @param {Object} state
* @returns {Array} List of environments
......
......@@ -14,7 +14,6 @@ class Projects::EnvironmentsController < Projects::ApplicationController
before_action :expire_etag_cache, only: [:index], unless: -> { request.format.json? }
before_action only: [:metrics, :additional_metrics, :metrics_dashboard] do
push_frontend_feature_flag(:prometheus_computed_alerts)
push_frontend_feature_flag(:searchable_environments_dropdown)
end
before_action do
push_frontend_feature_flag(:auto_stop_environments)
......
---
title: Enable search and filter in environments dropdown in monitoring dashboard
merge_request: 23942
author:
type: added
......@@ -51,13 +51,22 @@ exports[`Dashboard template matches the default snapshot 1`] = `
<gl-dropdown-divider-stub />
<!---->
<gl-search-box-by-type-stub
class="m-2"
value=""
/>
<div
class="flex-fill overflow-auto"
/>
<!---->
<div
class="text-secondary no-matches-message"
>
No matching results
</div>
</div>
</gl-dropdown-stub>
</gl-form-group-stub>
......
......@@ -255,9 +255,6 @@ describe('Dashboard', () => {
{
attachToDocument: true,
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