From bb323364089b92728cbd469ae7d572db4c9abaf7 Mon Sep 17 00:00:00 2001 From: "gitar-bot[bot]" <159877585+gitar-bot[bot]@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:48:33 +0300 Subject: [PATCH] [Gitar] Cleaning up stale flag: newEventSearch with value true (#8196) [![Gitar](https://raw.githubusercontent.com/gitarcode/.github/main/assets/gitar-banner.svg)](https://gitar.co) --- This automated PR was generated by [Gitar](https://gitar.co). View [docs](https://gitar.co/docs). --------- Co-authored-by: Gitar Co-authored-by: github-actions[bot] --- frontend/src/component/events/EventLog/EventLog.tsx | 2 +- frontend/src/interfaces/uiConfig.ts | 1 - src/lib/types/experimental.ts | 5 ----- src/server-dev.ts | 1 - website/sidebars.js | 2 +- 5 files changed, 2 insertions(+), 9 deletions(-) diff --git a/frontend/src/component/events/EventLog/EventLog.tsx b/frontend/src/component/events/EventLog/EventLog.tsx index a4f43c50fb..ab7d5c6dd9 100644 --- a/frontend/src/component/events/EventLog/EventLog.tsx +++ b/frontend/src/component/events/EventLog/EventLog.tsx @@ -53,7 +53,7 @@ const Placeholder = styled('li')({ export const EventLog = ({ title, project, feature }: IEventLogProps) => { const { isOss, isEnterprise } = useUiConfig(); const eventTimeline = useUiFlag('eventTimeline') && !isOss(); - const showFilters = useUiFlag('newEventSearch') && isEnterprise(); + const showFilters = isEnterprise(); const { events, total, diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index eee1ecbf97..7fcb3fb327 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -86,7 +86,6 @@ export type UiFlags = { enableLegacyVariants?: boolean; navigationSidebar?: boolean; flagCreator?: boolean; - newEventSearch?: boolean; archiveProjects?: boolean; projectListImprovements?: boolean; onboardingUI?: boolean; diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index b087f1ed99..58512f2261 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -56,7 +56,6 @@ export type IFlagKey = | 'extendedMetrics' | 'removeUnsafeInlineStyleSrc' | 'originMiddleware' - | 'newEventSearch' | 'archiveProjects' | 'projectListImprovements' | 'useProjectReadModel' @@ -282,10 +281,6 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_ORIGIN_MIDDLEWARE, false, ), - newEventSearch: parseEnvVarBoolean( - process.env.UNLEASH_EXPERIMENTAL_NEW_EVENT_SEARCH, - false, - ), archiveProjects: parseEnvVarBoolean( process.env.UNLEASH_EXPERIMENTAL_ARCHIVE_PROJECTS, false, diff --git a/src/server-dev.ts b/src/server-dev.ts index be7e586391..5cdb8a7d58 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -51,7 +51,6 @@ process.nextTick(async () => { enableLegacyVariants: false, extendedMetrics: true, originMiddleware: true, - newEventSearch: true, projectListImprovements: true, useProjectReadModel: true, addonUsageMetrics: true, diff --git a/website/sidebars.js b/website/sidebars.js index c75f120735..5a07a88644 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -110,7 +110,7 @@ module.exports = { { type: 'doc', label: 'Gradual Rollout', - id: 'feature-flag-tutorials/use-cases/gradual-rollout', + id: 'feature-flag-tutorials/use-cases/gradual-rollout', }, ], },