mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
chore: make login history GA (remove flag) (#3604)
https://linear.app/unleash/issue/2-956/remove-loginhistory-feature-flag Promotes [login history](https://docs.getunleash.io/reference/login-history) to GA by removing the `loginHistory` feature flag.
This commit is contained in:
parent
0141e2bec6
commit
2129736ca6
@ -451,7 +451,6 @@ export const adminMenuRoutes: INavigationMenuItem[] = [
|
|||||||
path: '/admin/logins',
|
path: '/admin/logins',
|
||||||
title: 'Login history',
|
title: 'Login history',
|
||||||
menu: { adminSettings: true, mode: ['enterprise'] },
|
menu: { adminSettings: true, mode: ['enterprise'] },
|
||||||
flag: 'loginHistory',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/admin/users',
|
path: '/admin/users',
|
||||||
|
@ -6,12 +6,10 @@ import { useConditionalSWR } from '../useConditionalSWR/useConditionalSWR';
|
|||||||
import useUiConfig from '../useUiConfig/useUiConfig';
|
import useUiConfig from '../useUiConfig/useUiConfig';
|
||||||
|
|
||||||
export const useLoginHistory = () => {
|
export const useLoginHistory = () => {
|
||||||
const { uiConfig, isEnterprise } = useUiConfig();
|
const { isEnterprise } = useUiConfig();
|
||||||
|
|
||||||
const { loginHistory } = uiConfig.flags;
|
|
||||||
|
|
||||||
const { data, error, mutate } = useConditionalSWR(
|
const { data, error, mutate } = useConditionalSWR(
|
||||||
loginHistory && isEnterprise(),
|
isEnterprise(),
|
||||||
{ events: [] },
|
{ events: [] },
|
||||||
formatApiPath(`api/admin/logins`),
|
formatApiPath(`api/admin/logins`),
|
||||||
fetcher
|
fetcher
|
||||||
|
@ -46,7 +46,6 @@ export interface IFlags {
|
|||||||
crOnVariants?: boolean;
|
crOnVariants?: boolean;
|
||||||
proPlanAutoCharge?: boolean;
|
proPlanAutoCharge?: boolean;
|
||||||
notifications?: boolean;
|
notifications?: boolean;
|
||||||
loginHistory?: boolean;
|
|
||||||
bulkOperations?: boolean;
|
bulkOperations?: boolean;
|
||||||
projectScopedStickiness?: boolean;
|
projectScopedStickiness?: boolean;
|
||||||
personalAccessTokensKillSwitch?: boolean;
|
personalAccessTokensKillSwitch?: boolean;
|
||||||
|
@ -77,7 +77,6 @@ exports[`should create default config 1`] = `
|
|||||||
"embedProxyFrontend": true,
|
"embedProxyFrontend": true,
|
||||||
"featuresExportImport": true,
|
"featuresExportImport": true,
|
||||||
"groupRootRoles": false,
|
"groupRootRoles": false,
|
||||||
"loginHistory": false,
|
|
||||||
"maintenanceMode": false,
|
"maintenanceMode": false,
|
||||||
"messageBanner": false,
|
"messageBanner": false,
|
||||||
"migrationLock": false,
|
"migrationLock": false,
|
||||||
@ -105,7 +104,6 @@ exports[`should create default config 1`] = `
|
|||||||
"embedProxyFrontend": true,
|
"embedProxyFrontend": true,
|
||||||
"featuresExportImport": true,
|
"featuresExportImport": true,
|
||||||
"groupRootRoles": false,
|
"groupRootRoles": false,
|
||||||
"loginHistory": false,
|
|
||||||
"maintenanceMode": false,
|
"maintenanceMode": false,
|
||||||
"messageBanner": false,
|
"messageBanner": false,
|
||||||
"migrationLock": false,
|
"migrationLock": false,
|
||||||
|
@ -50,7 +50,6 @@ const flags = {
|
|||||||
process.env.UNLEASH_PRO_PLAN_AUTO_CHARGE,
|
process.env.UNLEASH_PRO_PLAN_AUTO_CHARGE,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
loginHistory: parseEnvVarBoolean(process.env.UNLEASH_LOGIN_HISTORY, false),
|
|
||||||
bulkOperations: parseEnvVarBoolean(
|
bulkOperations: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_BULK_OPERATIONS,
|
process.env.UNLEASH_BULK_OPERATIONS,
|
||||||
false,
|
false,
|
||||||
|
Loading…
Reference in New Issue
Block a user