Remove google code as an import source
What does this MR do and why?
This change removes google code as an import source from the Gitlab::ImportSources module.
Support for google code as an import source was removed over two years ago, but had not been removed from the ImportSources module, so was still appearing in the Admin > Settings > General > Visibility and Access Controls > Import Sources list.
Screenshots or screen recordings
Before:
After:
How to set up and validate locally
For UI changes:
- check out the branch
- if not already started, start the gdk:
gdk start - visit
Admin > Settings > General > Visibility and Access Controls > Import Sources - confirm
google codeis not in the list of import sources
For DB changes:
- in the terminal run the migration:
bin/rails db:migrate RAILS_ENV=development - enter the rails console
gdk rails console - find current import_sources as stored on the main DB
ApplicationSetting.current.import_sources - ensure
"google_code\"does not appear in the result. - in the terminal rollback the migration
bin/rails db:rollback:main STEP=1 RAILS_ENV=development - in the rails console find current import_sources again ``ApplicationSetting.current.import_sources`
- ensure
"google_code\"appears in the result
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #379715 (closed)
Edited by Carla Drago