Clean up redundant self-hosted models code

What does this MR do and why?

This MR cleans up obsolete code related to the self-hosted models pages. The UI started off in HAML but has recently been converted to Vue and the old code needs to be removed.

What this MR does:

  • Removes the custom_models_vue_app feature flag. This was used while converting the HAML implementation into Vue, but is no longer needed as the Vue rebuild is complete.
  • Removes obsolete self-hosted models HAML code
  • Removes obsolete endpoints and their associated routes in the self-hosted models controller

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

Current Implementation:

Index New Edit
Screenshot_2024-10-29_at_4.43.25_PM Screenshot_2024-10-29_at_4.44.14_PM Screenshot_2024-10-29_at_4.44.41_PM

HAML Implementation (obsolete):

Index New Edit
Screenshot_2024-10-29_at_4.38.02_PM Screenshot_2024-10-29_at_4.42.29_PM Screenshot_2024-06-28_at_1.55.21_PM

How to set up and validate locally

To see the current implementation of the AI Feature settings page, follow steps below.

Prequisites

You will need an active GitLab ultimate license.

  1. Start GDK instance in self-managed mode:

GITLAB_SIMULATE_SAAS=0 && gdk start

  1. Visit the GDK feature flags page and ensure the following flags are enabled ai_custom_model
  2. Go to the rails console and ensure Code Suggestions is enabled
ApplicationSetting.first.update(duo_features_enabled: true)

Test it!

  1. Log in as an admin
  2. Visit Admin Area > Self-hosted models
    Screenshot_2024-10-09_at_9.07.35_PM
  3. Visit the "Self-hosted models" tab (you should land here by default)

Related to #484751 (closed)

Edited by Julie Huang

Merge request reports

Loading