Remove unused Rails views and init files

What does this MR do and why?

Since we've moved to using Vue router for self-hosted models page navigation, some Rails views and init files are now redundant and can be removed.

  • Removes Self-hosted models new HAML view and frontend init file
  • Removes Self-hosted models edit HAML view (the init file was removed in this MR but the view was accidentally missed)

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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

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

  1. Ensure self-hosted models routing functionality is working as expected:
  • Self-hosted models can be created, edited, deleted as usual
Edited by Julie Huang

Merge request reports

Loading