mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
feat: add lastSeenByEnvironment flag (#4393)
Closes: [1-1193](https://linear.app/unleash/issue/1-1193/add-lastseenbyenvironment-flag) --------- Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
parent
1b320fbdec
commit
a09c6dcaea
@ -81,6 +81,7 @@ exports[`should create default config 1`] = `
|
|||||||
"filterInvalidClientMetrics": false,
|
"filterInvalidClientMetrics": false,
|
||||||
"frontendNavigationUpdate": false,
|
"frontendNavigationUpdate": false,
|
||||||
"googleAuthEnabled": false,
|
"googleAuthEnabled": false,
|
||||||
|
"lastSeenByEnvironment": false,
|
||||||
"maintenanceMode": false,
|
"maintenanceMode": false,
|
||||||
"messageBanner": {
|
"messageBanner": {
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
@ -116,6 +117,7 @@ exports[`should create default config 1`] = `
|
|||||||
"filterInvalidClientMetrics": false,
|
"filterInvalidClientMetrics": false,
|
||||||
"frontendNavigationUpdate": false,
|
"frontendNavigationUpdate": false,
|
||||||
"googleAuthEnabled": false,
|
"googleAuthEnabled": false,
|
||||||
|
"lastSeenByEnvironment": false,
|
||||||
"maintenanceMode": false,
|
"maintenanceMode": false,
|
||||||
"messageBanner": {
|
"messageBanner": {
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
|
@ -27,7 +27,8 @@ export type IFlagKey =
|
|||||||
| 'emitPotentiallyStaleEvents'
|
| 'emitPotentiallyStaleEvents'
|
||||||
| 'configurableFeatureTypeLifetimes'
|
| 'configurableFeatureTypeLifetimes'
|
||||||
| 'filterInvalidClientMetrics'
|
| 'filterInvalidClientMetrics'
|
||||||
| 'frontendNavigationUpdate';
|
| 'frontendNavigationUpdate'
|
||||||
|
| 'lastSeenByEnvironment';
|
||||||
|
|
||||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||||
|
|
||||||
@ -128,6 +129,10 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_NAVIGATION_UPDATE,
|
process.env.UNLEASH_NAVIGATION_UPDATE,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
lastSeenByEnvironment: parseEnvVarBoolean(
|
||||||
|
process.env.LAST_SEEN_BY_ENVIRONMENT,
|
||||||
|
false,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
@ -43,6 +43,7 @@ process.nextTick(async () => {
|
|||||||
slackAppAddon: true,
|
slackAppAddon: true,
|
||||||
configurableFeatureTypeLifetimes: true,
|
configurableFeatureTypeLifetimes: true,
|
||||||
frontendNavigationUpdate: true,
|
frontendNavigationUpdate: true,
|
||||||
|
lastSeenByEnvironment: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
authentication: {
|
authentication: {
|
||||||
|
Loading…
Reference in New Issue
Block a user