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:
![](/-/project/278964/uploads/ad222b6f7934ad4d14da7728989df8b8/Screenshot_2022-12-08_at_17.53.10.png)
After:
![](/-/project/278964/uploads/6eda591c6e998f6d2b3223413ffda06f/Screenshot_2022-12-08_at_17.51.07.png)
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 code
is 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