feat(file importer): feature flag defined

This commit is contained in:
Iain Sproat
2025-05-07 17:05:42 +02:00
parent 15d67ba589
commit b36fea2779
5 changed files with 22 additions and 0 deletions
+6
View File
@@ -75,6 +75,11 @@ export const parseFeatureFlags = (
FF_FORCE_PERSONAL_PROJECTS_LIMITS_ENABLED: {
schema: z.boolean(),
defaults: { production: false, _: true }
},
// Enables the new file importer
FF_NEXT_GEN_FILE_IMPORTER_ENABLED: {
schema: z.boolean(),
defaults: { production: false, _: false }
}
})
@@ -103,6 +108,7 @@ export type FeatureFlags = {
FF_MOVE_PROJECT_REGION_ENABLED: boolean
FF_NO_PERSONAL_EMAILS_ENABLED: boolean
FF_FORCE_PERSONAL_PROJECTS_LIMITS_ENABLED: boolean
FF_NEXT_GEN_FILE_IMPORTER_ENABLED: boolean
}
export function getFeatureFlags(): FeatureFlags {
@@ -1108,4 +1108,9 @@ Generate the environment variables for Speckle server and Speckle objects deploy
- name: MULTI_REGION_CONFIG_PATH
value: "/multi-region-config/multi-region-config.json"
{{- end }}
{{- if .Values.featureFlags.nextGenFileImporterEnabled }}
- name: FF_NEXT_GEN_FILE_IMPORTER_ENABLED
value: {{ .Values.featureFlags.nextGenFileImporterEnabled | quote }}
{{- end }}
{{- end }}
@@ -120,6 +120,10 @@ spec:
- name: MULTI_REGION_CONFIG_PATH
value: "/multi-region-config/multi-region-config.json"
{{- end }}
{{- if .Values.featureFlags.nextGenFileImporterEnabled }}
- name: FF_NEXT_GEN_FILE_IMPORTER_ENABLED
value: {{ .Values.featureFlags.nextGenFileImporterEnabled | quote }}
{{- end }}
{{- with .Values.fileimport_service.additionalEnvVars }}
{{- toYaml . | nindent 10}}
{{- end }}
@@ -99,6 +99,11 @@
"type": "boolean",
"description": "Enables the ability to move a project region (manually or automatically)",
"default": false
},
"nextGenFileImporterEnabled": {
"type": "boolean",
"description": "Enables the next generation file importer",
"default": false
}
}
},
+2
View File
@@ -61,6 +61,8 @@ featureFlags:
workspacesNewPlanEnabled: false
## @param featureFlags.moveProjectRegionEnabled Enables the ability to move a project region (manually or automatically)
moveProjectRegionEnabled: false
## @param featureFlags.nextGenFileImporterEnabled Enables the next generation file importer
nextGenFileImporterEnabled: false
analytics:
## @param analytics.enabled Enable or disable analytics