Skip to content

Commit

Permalink
chore: add flag for project list filter updates (#6825)
Browse files Browse the repository at this point in the history
This PR adds the flag for the project list filter feature we're working
on at the moment.
  • Loading branch information
thomasheartman committed Apr 10, 2024
1 parent e6ec78f commit 1a05bda
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/interfaces/uiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export type UiFlags = {
projectOverviewRefactorFeedback?: boolean;
featureLifecycle?: boolean;
scimApi?: boolean;
projectListFilterMyProjects?: boolean;
};

export interface IVersionInfo {
Expand Down
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 @@ -132,6 +132,7 @@ exports[`should create default config 1`] = `
"migrationLock": true,
"outdatedSdksBanner": false,
"personalAccessTokensKillSwitch": false,
"projectListFilterMyProjects": false,
"projectOverviewRefactor": false,
"projectOverviewRefactorFeedback": false,
"queryMissingTokens": false,
Expand Down
7 changes: 6 additions & 1 deletion src/lib/types/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export type IFlagKey =
| 'disableShowContextFieldSelectionValues'
| 'bearerTokenMiddleware'
| 'projectOverviewRefactorFeedback'
| 'featureLifecycle';
| 'featureLifecycle'
| 'projectListFilterMyProjects';

export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;

Expand Down Expand Up @@ -283,6 +284,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_FEATURE_LIFECYCLE,
false,
),
projectListFilterMyProjects: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_PROJECTS_LIST_MY_PROJECTS,
false,
),
};

export const defaultExperimentalOptions: IExperimentalOptions = {
Expand Down
1 change: 1 addition & 0 deletions src/server-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ process.nextTick(async () => {
variantDependencies: true,
projectOverviewRefactorFeedback: true,
featureLifecycle: true,
projectListFilterMyProjects: true,
},
},
authentication: {
Expand Down

0 comments on commit 1a05bda

Please sign in to comment.