Remove duo_additional_context feature flag
What does this MR do and why?
Remove duo_additional_context feature flag
Remove the feature flag duo_additional_context
that was used to enable
the ability to include additional context into Duo Chat questions.
Removal of this feature flag is part of the cleanup process of the feature introduction. This feature flag did require at least one of the other additional feature flags that allowed for specific context to be enabled for it to affect any users.
Documentation updates around this feature flag are covered in the merge
request for removal of the duo_include_context_file
feature flag.
References
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
-
Checkout
remove-duo-additional-context-ff
branchgit checkout remove-duo-additional-context-ff
-
Run
bundle exec rails c
-
Enable feature flag
Feature.enable(:duo_include_context_file)
-
Start
gdk
gdk start
-
Navigate to http://gdk.test:3000/-/graphql-explorer
-
Run the following mutation:
query currentUser { currentUser { duoChatAvailable duoCodeSuggestionsAvailable duoChatAvailableFeatures } }
-
You should only see the
include_file_context
in theduoChatAvailableFeatures
array in the return.{ "data": { "currentUser": { "duoChatAvailable": true, "duoCodeSuggestionsAvailable": true, "duoChatAvailableFeatures": [ "include_file_context" ] } }, "correlationId": "XXXXXXXXXX" }
-
Repeat this with the remaining feature flags:
- Enable feature flag
Feature.enable(:duo_include_context_issue)
- Enable feature flag
Feature.enable(:duo_include_context_merge_request)
- Enable feature flag
Feature.enable(:duo_include_context_snippet)
- Enable feature flag
Feature.enable(:duo_include_context_local_git)
- Enable feature flag
Feature.enable(:duo_include_context_dependency)
- Enable feature flag
-
They should all show up in the
duoChatAvailableFeatures
when done.- If only
snippet
andfile
show after enabling the other flags, ensure you have an EE license configured
- If only