Skip to content

Allow AI features to be available on Self-Managed

Gosia Ksionek requested to merge mk-prepare-abstraction-layer-for-sm into master

What does this MR do and why?

Allow enabling AI features on SM instances.

Changes include: small class that is responsible for checking feature flags based on new class that is SSOT for all ai features.

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. Run GDK in NON-Saas mode.
  2. Verify on master that you cannot see standalone ai features (for example: generating issue description).
  3. In rails console disable the feature flag that is used on SaaS
    Feature.disable(:ai_global_switch)
  4. In this file, enable one feature for self-managed, by changing self-managed value to true. I checked it work without any additional changes for generate_description.
  5. Two changes that are not connected to this MR but are required or helpful:
  1. Visit page for generating new issue and check if there is a button that indicates this feature is active.
  2. Click on the button and generate description.
Edited by Gosia Ksionek

Merge request reports