Skip to content

Commit

Permalink
chore: add inMemoryScheduledChangeRequests flag (#6151)
Browse files Browse the repository at this point in the history
What it says on the box

Closes #
[1-2030](https://linear.app/unleash/issue/1-2030/create-inmemoryscheduledchangerequests-flag)

---------

Signed-off-by: andreas-unleash <[email protected]>
  • Loading branch information
andreas-unleash authored Feb 7, 2024
1 parent 11bfcd6 commit 59a736f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/__snapshots__/create-config.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ exports[`should create default config 1`] = `
},
"filterInvalidClientMetrics": false,
"googleAuthEnabled": false,
"inMemoryScheduledChangeRequests": false,
"incomingWebhooks": false,
"increaseUnleashWidth": false,
"maintenanceMode": false,
Expand Down
5 changes: 5 additions & 0 deletions src/lib/types/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export type IFlagKey =
| 'feedbackComments'
| 'createdByUserIdDataMigration'
| 'showInactiveUsers'
| 'inMemoryScheduledChangeRequests'
| 'useMemoizedActiveTokens';

export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
Expand Down Expand Up @@ -232,6 +233,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_MEMOIZED_ACTIVE_TOKENS,
false,
),
inMemoryScheduledChangeRequests: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_IN_MEMORY_SCHEDULED_CHANGE_REQUESTS,
false,
),
};

export const defaultExperimentalOptions: IExperimentalOptions = {
Expand Down

0 comments on commit 59a736f

Please sign in to comment.