-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: remove genai from experimental feature list and enable via /master
feature switches [GAS-1016]
#9435
Conversation
✅ Deploy Preview for determined-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
d6abaa5
to
36ac6c3
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9435 +/- ##
==========================================
- Coverage 51.06% 43.78% -7.29%
==========================================
Files 747 423 -324
Lines 111167 71219 -39948
Branches 2778 2781 +3
==========================================
- Hits 56772 31182 -25590
+ Misses 54220 39862 -14358
Partials 175 175
Flags with carried forward coverage won't be shown. Click here to find out more.
|
should this also be added to the mobile |
cabc4b7
to
0644c04
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also see comment re: adding to NavigationTabbar
@@ -37,6 +38,7 @@ export const FEATURES: Record<ValidFeature, FeatureDescription> = { | |||
defaultValue: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also want defaultValue
to be true
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually we don't want this always on, because we still want featureSwitches
from /api/v1/master
to be able to return and control whether genai is supported or not. If the deployment does not support genai, then featureSwitches
will not have genai
in the list and the UI will not show the corresponding link either. Having it on makes it always appear no matter what for me.
0644c04
to
3db4de1
Compare
Good call with the tab bar, added to the tabbar as well |
/master
feature switches [GAS-1016]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing blocking but please see comments
featureSwitches.includes(feature) && (isOn = true); | ||
featureSwitches.includes(`-${feature}`) && (isOn = false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re: previous comment about defaultValue
I thought the intent was to enable the feature by default, but still be able to disable it via config. According to this check here, disabling via config would be accomplished by including -genai
in featureSwitches
, not by omitting it (omitting defers to default)
but if the intent is actually to have it disabled by default and only enabled via config, then this does seem to accomplish that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yeah great point, since I wasn't aware of the -genai
possibility. I confirmed with the team that genai
will still be off by default on the config side and that it has to be explicitly turned on to enable it. So on the featureSwitches
side it should only ever come through as genai
(without the minus prefix).
<Select searchable={false}> | ||
<Option value={true}>On</Option> | ||
<Option value={false}>Off</Option> | ||
</Select> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: ET team has discussed wanting to replace these Select
s with Toggle
s. definitely outside the scope of this PR but thought I'd bring it up since we're making changes to this area anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, the toggle definitely makes more sense here for these binary options!
Nav Bar
Tab Bar
Removed
genai
from Experimentals list of features.Ticket
GAS-1016
Description
Removes the user control of turning on/off genai from the Experimental list of features under user settings. The
noUserControl
flag makes the feature purely controlled by the backendfeatureSwitches
, where if it is included in there, then it is enabled.Test Plan
GenAI
feature does NOT show up on theExperimentals
list of features under user settings.f_genai=true
does not turn GenAI on in an MLDE cluster that does not have genai enabled.genai
returned by the/master
endpoint (featureSwitches) then it appears in the sidebar.genai
returned by the/aster
endpoint (featureSwitches) then it does NOT appear in the side bar.Checklist
docs/release-notes/
.See Release Note for details.