1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-01 13:47:27 +02:00

flag: integrationsRework

This commit is contained in:
Tymoteusz Czech 2023-08-17 15:30:33 +02:00
parent 169a3167da
commit 9ec8ff9a51
No known key found for this signature in database
GPG Key ID: 133555230D88D75F
3 changed files with 18 additions and 2 deletions

View File

@ -300,7 +300,7 @@ export const routes: IRoute[] = [
menu: { mobile: true, advanced: true }, menu: { mobile: true, advanced: true },
}, },
// Addons // Integrations
{ {
path: '/addons/create/:providerId', path: '/addons/create/:providerId',
parent: '/addons', parent: '/addons',
@ -325,6 +325,16 @@ export const routes: IRoute[] = [
type: 'protected', type: 'protected',
menu: { mobile: true, advanced: true }, menu: { mobile: true, advanced: true },
}, },
// TODO: remove 'addons' from menu after removing Integrations menu flag
{
path: '/integrations',
title: 'Integrations',
component: AddonList,
hidden: false,
type: 'protected',
menu: { mobile: true, advanced: true },
flag: 'integrationsRework',
},
// Segments // Segments
{ {

View File

@ -58,6 +58,7 @@ export interface IFlags {
segmentChangeRequests?: boolean; segmentChangeRequests?: boolean;
changeRequestReject?: boolean; changeRequestReject?: boolean;
lastSeenByEnvironment?: boolean; lastSeenByEnvironment?: boolean;
integrationsRework?: boolean;
} }
export interface IVersionInfo { export interface IVersionInfo {

View File

@ -30,7 +30,8 @@ export type IFlagKey =
| 'lastSeenByEnvironment' | 'lastSeenByEnvironment'
| 'segmentChangeRequests' | 'segmentChangeRequests'
| 'changeRequestReject' | 'changeRequestReject'
| 'customRootRolesKillSwitch'; | 'customRootRolesKillSwitch'
| 'integrationsRework';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -142,6 +143,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_CUSTOM_ROOT_ROLES_KILL_SWITCH, process.env.UNLEASH_EXPERIMENTAL_CUSTOM_ROOT_ROLES_KILL_SWITCH,
false, false,
), ),
integrationsRework: parseEnvVarBoolean(
process.env.UNLEASH_INTEGRATIONS,
false,
),
}; };
export const defaultExperimentalOptions: IExperimentalOptions = { export const defaultExperimentalOptions: IExperimentalOptions = {