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
newHAML view and frontend init file - Removes Self-hosted models
editHAML 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.
- Start GDK instance in self-managed mode:
GITLAB_SIMULATE_SAAS=0 && gdk start
- Visit the GDK feature flags page and ensure the following flags are enabled
ai_custom_model - Go to the rails console and ensure Code Suggestions is enabled
ApplicationSetting.first.update(duo_features_enabled: true)
Test it!
- Log in as an admin
- Visit Admin Area > Self-hosted models
- Ensure self-hosted models routing functionality is working as expected:
- Self-hosted models can be created, edited, deleted as usual
Edited by Julie Huang
