[container registry migration] Remove backend related code
## :fire: Problem During the container registry migration, rails was the main driver of the migration. Several changes went into the code to handle the migration. That phase is now completed on ~"gitlab.com" and ~"self-managed" will use a different migration path. As such, the code related to the container registry migration is not used anymore and can be removed. ## :fire_engine: Solution Several things need to be removed/cleanup. Several MRs will be needed. Also, several milestones are needed. ### :one: Background jobs :white_check_mark: (DONE 100%) * Remove all 3 jobs that are in `app/workers/container_registry/migration/`. * Follow the [guideline](https://docs.gitlab.com/ee/development/sidekiq/compatibility_across_updates.html#removing-worker-classes). * Remove the related specs. ### :two: API endpoints :white_check_mark: (DONE 100%) * Remove `API::Internal::ContainerRegistry::Migration` ### :three: Database (17.0: :white_check_mark: , 17.1: :white_check_mark: , 17.2: :white_check_mark:, 17.3: PENDING) On `container_repositories` table, remove columns: * remove all `migration_*` columns. * Follow the [guideline](https://docs.gitlab.com/ee/development/database/avoiding_downtime_in_migrations.html#dropping-columns) ### :four: Model :white_check_mark: * In `ContainerRepository` mode, remove * scopes related to the migration. * remove the state machine. * remove all helper functions. * remove related functions. ### :five: Gitlab Settings (17.0: :white_check_mark: , 17.1: :white_check_mark:, 17.2, :white_check_mark:) Remove the settings from ApplicationSettings: * Follow the [guideline](https://docs.gitlab.com/ee/development/database/avoiding_downtime_in_migrations.html#dropping-columns) ``` :container_registry_import_max_tags_count :container_registry_import_max_retries :container_registry_import_start_max_retries :container_registry_import_max_step_duration :container_registry_import_target_plan :container_registry_import_created_before :container_registry_pre_import_timeout :container_registry_import_timeout :container_registry_pre_import_tags_rate ``` A related MR in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/149168. ### :six: Cleanup import API calls in `lib/container_registry/gitlab_api_client.rb` :white_check_mark: (DONE 100%) Remove all calls to the registry migration API. This in turn should also allow the removal of the `import_access` token in the container registry auth service.
issue