Skip to content

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

  1. Checkout remove-duo-additional-context-ff branch

    1. git checkout remove-duo-additional-context-ff
  2. Run bundle exec rails c

  3. Enable feature flag Feature.enable(:duo_include_context_file)

  4. Start gdk

    1. gdk start
  5. Navigate to http://gdk.test:3000/-/graphql-explorer

  6. Run the following mutation:

    query currentUser {
      currentUser {
        duoChatAvailable
        duoCodeSuggestionsAvailable
        duoChatAvailableFeatures
      }
    }
  7. You should only see the include_file_context in the duoChatAvailableFeatures array in the return.

    {
      "data": {
        "currentUser": {
          "duoChatAvailable": true,
          "duoCodeSuggestionsAvailable": true,
          "duoChatAvailableFeatures": [
            "include_file_context"
          ]
        }
      },
      "correlationId": "XXXXXXXXXX"
    }
  8. Repeat this with the remaining feature flags:

    1. Enable feature flag Feature.enable(:duo_include_context_issue)
    2. Enable feature flag Feature.enable(:duo_include_context_merge_request)
    3. Enable feature flag Feature.enable(:duo_include_context_snippet)
    4. Enable feature flag Feature.enable(:duo_include_context_local_git)
    5. Enable feature flag Feature.enable(:duo_include_context_dependency)
  9. They should all show up in the duoChatAvailableFeatures when done.

    1. If only snippet and file show after enabling the other flags, ensure you have an EE license configured
Edited by Dillon Wheeler

Merge request reports

Loading