Introduce generic ai platform and team type feature flag#7317
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7317 +/- ##
=======================================
Coverage 76.59% 76.59%
=======================================
Files 405 405
Lines 20613 20614 +1
Branches 4991 4992 +1
=======================================
+ Hits 15788 15789 +1
Misses 4825 4825
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
A few things
|
hardillb
left a comment
There was a problem hiding this comment.
Need answers to comment above
|
I'll create a task and update the docs shortly. I already created a change request for our platforms, i'm not sure that includes the docker-compose default config though (see https://github.com/FlowFuse/CloudProject/issues/1349). That's a good point on defaulting to false, the rule is users should opt out by request. I'll update the pr so it'll default to true if not configured. |
Helm chart update needs to be done before CloudProject work can be done |
|
Is that done through a separate cloud infrastructure task? I forget |
|
It need to be done here: https://github.com/FlowFuse/helm/ So it's available to all (not just FFC) |
|
Ok, raising an issue shortly |
|
done, all tasks were raised and linked to the parent issue |
|
@cstns is this ready for review again? |
|
yes |
Description
Introduces a new
aifeature flag at both platform and team type level as the foundation for a global AI opt-out mechanism.This flag is not hooked up to any existing AI features yet. It is registered and available but does not currently gate anything. Subsequent tasks will wire
generatedSnapshotDescription,assistantInlineCompletions,expertAssistant, andexpertInsightsto depend on this flag.Changes:
ai.enabledconfig template toetc/flowforge.ymlaito the feature list and feature names inforge/lib/features.jsaiplatform feature flag inforge/ee/lib/index.js(config-driven, defaults totrue)isAiFeatureEnabledto frontendFEATURE_CONFIGSwith bothplatformKeyandteamKeyThe flag is opt-in at the team type level and will automatically appear in the admin TeamType editor.
Related Issue(s)
closes #7310
Checklist
flowforge.yml?FlowFuse/helmto update ConfigMap TemplateFlowFuse/CloudProjectto update values for Staging/ProductionLabels
area:migrationlabel