1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

add tokens last seen feature flag (#2512)

https://linear.app/unleash/issue/2-450/add-feature-flag
This commit is contained in:
Nuno Góis 2022-11-23 13:33:02 +00:00 committed by GitHub
parent e439e46090
commit f9726fdee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 1 deletions

View File

@ -19,7 +19,6 @@ import {
} from 'utils/strategyNames';
import { hasNameField } from '../changeRequest.types';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
import { useChangeRequestOpen } from '../../../hooks/api/getters/useChangeRequestOpen/useChangeRequestOpen';
interface IChangeRequestProps {
changeRequest: IChangeRequest;

View File

@ -44,6 +44,7 @@ export interface IFlags {
changeRequests?: boolean;
cloneEnvironment?: boolean;
variantsPerEnvironment?: boolean;
tokensLastSeen?: boolean;
}
export interface IVersionInfo {

View File

@ -77,6 +77,7 @@ exports[`should create default config 1`] = `
"responseTimeWithAppName": false,
"syncSSOGroups": false,
"toggleTagFiltering": false,
"tokensLastSeen": false,
"variantsPerEnvironment": false,
},
},
@ -93,6 +94,7 @@ exports[`should create default config 1`] = `
"responseTimeWithAppName": false,
"syncSSOGroups": false,
"toggleTagFiltering": false,
"tokensLastSeen": false,
"variantsPerEnvironment": false,
},
"externalResolver": {

View File

@ -46,6 +46,10 @@ export const defaultExperimentalOptions = {
process.env.UNLEASH_EXPERIMENTAL_VARIANTS_PER_ENVIRONMENT,
false,
),
tokensLastSeen: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_TOKENS_LAST_SEEN,
false,
),
},
externalResolver: { isEnabled: (): boolean => false },
};
@ -63,6 +67,7 @@ export interface IExperimentalOptions {
cloneEnvironment?: boolean;
proxyReturnAllToggles?: boolean;
variantsPerEnvironment?: boolean;
tokensLastSeen?: boolean;
};
externalResolver: IExternalFlagResolver;
}