feat: feature flags for production environment
1 unresolved thread
1 unresolved thread
This MR contains feature variables for released visualizations, insight sharing, sharable explorations and management of user permissions for the production environment.
Merge request reports
Activity
requested review from @milho001
assigned to @Vink
added 7 commits
-
941ba60d...8ab9df51 - 4 commits from branch
main
- 593d933f - feat(featureFlags): setting up feature flags for production
- 190e961a - feat(featureFlags): centralized logic
- a5eb9917 - feat(featureFlags): null value safety
Toggle commit list-
941ba60d...8ab9df51 - 4 commits from branch
- libs/config/src/featureFlags.ts 0 → 100644
1 // Safely retrieve environment variable values with a default fallback 2 const getEnvVariable = (key: string, defaultValue: string = 'false'): string => { 3 return import.meta.env[key] ?? defaultValue; 4 }; 5 6 // Check if the environment is production 7 const isProduction = (): boolean => { 8 return getEnvVariable('GRAPHPOLARIS_VERSION', 'dev') === 'prod'; 9 }; 10 11 // Check if the Manage Permissions feature is enabled 12 const showManagePermissions = (): boolean => { 13 return !isProduction() || (isProduction() && getEnvVariable('WIP_VIEWER_PERMISSIONS') === 'false'); enabled an automatic merge when all merge checks for bb079ffc pass
This MR is included in version 1.91.0The release is available on GitLab release.
Your semantic-release bot
Please register or sign in to reply