From dff5cac4fe08dcb4d64cd6da425da8a872bfb47d Mon Sep 17 00:00:00 2001 From: Dharini Jeeva Date: Thu, 13 Mar 2025 15:12:36 -0700 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20worker=20filter=20fe?= =?UTF-8?q?ature=20flags=20(#2720)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../credential-store/actions/index.hbs | 2 +- .../credential-store/nav/index.hbs | 2 +- .../form/credential-store/vault/index.hbs | 2 +- .../form/host-catalog/aws/index.hbs | 2 +- .../form/host-catalog/gcp/index.hbs | 2 +- .../worker-diagram/dual-filter/hcp/index.hbs | 2 +- .../app/components/worker-diagram/index.hbs | 4 ++-- .../scopes/scope/targets/target/workers.hbs | 2 +- ui/admin/config/features.js | 12 ++++------ .../credential-store/create-test.js | 2 +- .../credential-store/update-test.js | 2 +- .../acceptance/host-catalogs/create-test.js | 4 ++-- .../tests/acceptance/targets/workers-test.js | 24 +++++++++---------- .../dual-filter/hcp/index-test.js | 2 +- .../worker-diagram/dual-filter/index-test.js | 2 +- .../components/worker-diagram/index-test.js | 8 +++---- 16 files changed, 35 insertions(+), 39 deletions(-) diff --git a/ui/admin/app/components/credential-stores/credential-store/actions/index.hbs b/ui/admin/app/components/credential-stores/credential-store/actions/index.hbs index df3864a16..d5e8a613f 100644 --- a/ui/admin/app/components/credential-stores/credential-store/actions/index.hbs +++ b/ui/admin/app/components/credential-stores/credential-store/actions/index.hbs @@ -18,7 +18,7 @@ {{t 'resources.credential.actions.create'}} {{/if}} - {{#if (and (feature-flag 'vault-worker-filter') @model.isVault)}} + {{#if (and (feature-flag 'worker-filter') @model.isVault)}} diff --git a/ui/admin/app/components/credential-stores/credential-store/nav/index.hbs b/ui/admin/app/components/credential-stores/credential-store/nav/index.hbs index 0f3142cfc..58d3c341c 100644 --- a/ui/admin/app/components/credential-stores/credential-store/nav/index.hbs +++ b/ui/admin/app/components/credential-stores/credential-store/nav/index.hbs @@ -8,7 +8,7 @@ {{t 'titles.details'}} {{#if @model.isVault}} - {{#if (feature-flag 'vault-worker-filter')}} + {{#if (feature-flag 'worker-filter')}} diff --git a/ui/admin/app/components/form/credential-store/vault/index.hbs b/ui/admin/app/components/form/credential-store/vault/index.hbs index b1f90a7ba..377c0c24b 100644 --- a/ui/admin/app/components/form/credential-store/vault/index.hbs +++ b/ui/admin/app/components/form/credential-store/vault/index.hbs @@ -118,7 +118,7 @@ {{! worker_filter }} - {{#if (and (feature-flag 'vault-worker-filter') @model.isNew)}} + {{#if (and (feature-flag 'worker-filter') @model.isNew)}} {{#let (unique-id) (unique-id) as |labelId helpId|}} {{/if}} - {{#if (feature-flag 'host-catalog-worker-filter')}} + {{#if (feature-flag 'worker-filter')}} - {{#if (feature-flag 'host-catalog-worker-filter')}} + {{#if (feature-flag 'worker-filter')}} - {{#if (feature-flag 'target-worker-filters-v2-hcp')}} + {{#if (feature-flag 'worker-filter-hcp')}} {{t 'resources.target.workers.diagram.hcp-worker'}} {{else}} {{t 'resources.target.workers.diagram.frontline-worker'}} diff --git a/ui/admin/app/components/worker-diagram/index.hbs b/ui/admin/app/components/worker-diagram/index.hbs index fbb808186..4535235bc 100644 --- a/ui/admin/app/components/worker-diagram/index.hbs +++ b/ui/admin/app/components/worker-diagram/index.hbs @@ -4,8 +4,8 @@ }}
- {{#if (feature-flag 'target-worker-filters-v2-ingress')}} - {{#if (feature-flag 'target-worker-filters-v2-hcp')}} + {{#if (feature-flag 'worker-filter')}} + {{#if (feature-flag 'worker-filter-hcp')}} - {{#if (feature-flag 'target-worker-filters-v2-ingress')}} + {{#if (feature-flag 'worker-filter')}}