Update duo chat include context ff
What does this MR do and why?
Updates duo_include_context_file and duo_additional_context flag for duo chat to be enabled by default.
The include file-context feature allows the ability to use the /include command within Duo Chat and select the file to be included for context when asking Duo Chat a question.
We are moving these to the beta flag type to allow us to enable them by default.
Right now we are waiting on more adoption of the new releases for the IDE before we remove the feature flag because there is a dependency check within the client side for these flags.
- More information on that #512098 (comment 2324090312)
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
update-duo-chat-include-context-ffbranchgit checkout update-duo-chat-include-context-ff
-
Run
bundle exec rails c -
Start
gdkgdk 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_contextin theduoChatAvailableFeaturesarray in the return.{ "data": { "currentUser": { "duoChatAvailable": true, "duoCodeSuggestionsAvailable": true, "duoChatAvailableFeatures": [ "include_file_context" ] } }, "correlationId": "XXXXXXXXXX" }