Skip to content

Remove duo_include_context_file feature flag

What does this MR do and why?

Remove duo_include_context_file feature flag

Remove the feature flag duo_include_context_file 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.

References

Screenshots or screen recordings

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. Start gdk

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

  4. Run the following mutation:

    query currentUser {
      currentUser {
        duoChatAvailable
        duoCodeSuggestionsAvailable
        duoChatAvailableFeatures
      }
    }
  5. 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"
    }
  6. 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)
  7. 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

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.

Closes #514555 (closed)

Edited by Dillon Wheeler

Merge request reports

Loading