From 1c0431365e2d0ac091646128c2ce771613dca096 Mon Sep 17 00:00:00 2001 From: "gitar-bot[bot]" <159877585+gitar-bot[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 10:44:13 +0200 Subject: [PATCH] [Gitar] Cleaning up stale flag: licensedUsers with value true (#9061) [![Gitar](https://raw.githubusercontent.com/gitarcode/.github/main/assets/gitar-banner.svg)](https://gitar.ai) This automated PR permanently enables the `licensedUsers` feature flag. --- This automated PR was generated by [Gitar](https://gitar.ai). View [docs](https://gitar.ai/docs). --------- Co-authored-by: Gitar --- .../src/component/admin/users/UsersHeader/UsersHeader.tsx | 4 +--- frontend/src/interfaces/uiConfig.ts | 1 - src/lib/types/experimental.ts | 5 ----- src/server-dev.ts | 1 - 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/frontend/src/component/admin/users/UsersHeader/UsersHeader.tsx b/frontend/src/component/admin/users/UsersHeader/UsersHeader.tsx index 43b6edb6233f..61f984d09e7f 100644 --- a/frontend/src/component/admin/users/UsersHeader/UsersHeader.tsx +++ b/frontend/src/component/admin/users/UsersHeader/UsersHeader.tsx @@ -1,6 +1,5 @@ import { Box, styled } from '@mui/material'; import { InviteLinkBar } from '../InviteLinkBar/InviteLinkBar'; -import { useUiFlag } from 'hooks/useUiFlag'; import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; import { LicensedUsersBox } from './LicensedUsersBox'; @@ -24,9 +23,8 @@ const StyledElement = styled(Box)(({ theme }) => ({ })); export const UsersHeader = () => { - const licensedUsers = useUiFlag('licensedUsers'); const { isOss } = useUiConfig(); - const licensedUsersEnabled = licensedUsers && !isOss(); + const licensedUsersEnabled = !isOss(); return ( diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index a745365d6e86..4cfba1cd5e28 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -90,7 +90,6 @@ export type UiFlags = { productivityReportEmail?: boolean; showUserDeviceCount?: boolean; flagOverviewRedesign?: boolean; - licensedUsers?: boolean; granularAdminPermissions?: boolean; }; diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 1f045d26c766..ebdc57d553f8 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -57,7 +57,6 @@ export type IFlagKey = | 'showUserDeviceCount' | 'deleteStaleUserSessions' | 'memorizeStats' - | 'licensedUsers' | 'granularAdminPermissions' | 'streaming' | 'etagVariant' @@ -270,10 +269,6 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_FLAG_OVERVIEW_REDESIGN, false, ), - licensedUsers: parseEnvVarBoolean( - process.env.UNLEASH_EXPERIMENTAL_FLAG_LICENSED_USERS, - false, - ), granularAdminPermissions: parseEnvVarBoolean( process.env.UNLEASH_EXPERIMENTAL_GRANULAR_ADMIN_PERMISSIONS, false, diff --git a/src/server-dev.ts b/src/server-dev.ts index 9b06b4e8dd55..a95c84f305dd 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -54,7 +54,6 @@ process.nextTick(async () => { simplifyProjectOverview: true, showUserDeviceCount: true, flagOverviewRedesign: false, - licensedUsers: true, granularAdminPermissions: true, deltaApi: true, },