Introduce duo_chat_monolith_components FF
What does this MR do and why?
Introduces the duo_chat_monolith_components feature flag (gitlab_com_derisk type) to control the use of migrated Duo Chat view components from the GitLab monolith instead of the @gitlab/duo-ui package.
This MR adds:
- The feature flag YAML definition in
config/feature_flags/gitlab_com_derisk/duo_chat_monolith_components.yml - Frontend feature flag exposure via
push_frontend_feature_flaginee/lib/ee/gitlab/gon_helper.rb
The flag is disabled by default and scoped to current_user. The MR !228844 (merged) uses this feature flag. We are introducing the feature flag in a separate MR to reduce possibility of merge conflicts and expedite merging.
References
Screenshots or screen recordings
Not applicable - no UI changes.
| Before | After |
|---|---|
| N/A | N/A |
How to set up and validate locally
-
Enable the feature flag:
Feature.enable(:duo_chat_monolith_components) -
Verify the flag is exposed to the frontend by checking
gon.features.duoChatMonolithComponentsin the browser console. -
Disable the feature flag:
Feature.disable(:duo_chat_monolith_components) -
Confirm
gon.features.duoChatMonolithComponentsis no longer present.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #593464