Create a feature flag for dashboards v2 (#15601)

Prevent users from creating v2 chart types via the api.
Only created unit tests and not integration tests (since it's not that
important, and the v2 will be released soon), but tested via the api
playground.
This commit is contained in:
Raphaël Bosi
2025-11-04 16:29:08 +01:00
committed by GitHub
parent 59f3f03539
commit 05a28a8ec2
15 changed files with 273 additions and 235 deletions
@@ -138,6 +138,7 @@ describe('WorkspaceEntityManager', () => {
IS_PUBLIC_DOMAIN_ENABLED: false,
IS_EMAILING_DOMAIN_ENABLED: false,
IS_WORKFLOW_RUN_STOPPAGE_ENABLED: false,
IS_DASHBOARD_V2_ENABLED: false,
},
eventEmitterService: {
emitMutationEvent: jest.fn(),
@@ -163,6 +164,8 @@ describe('WorkspaceEntityManager', () => {
IS_MESSAGE_FOLDER_CONTROL_ENABLED: false,
IS_PUBLIC_DOMAIN_ENABLED: false,
IS_EMAILING_DOMAIN_ENABLED: false,
IS_WORKFLOW_RUN_STOPPAGE_ENABLED: false,
IS_DASHBOARD_V2_ENABLED: false,
},
permissionsPerRoleId: {},
} as WorkspaceDataSource;