Skip to content

Update container_repositories `migration_state` default value

Background

We track the migration_state in rails to determine which repositories need to be imported or are still awaiting import. Currently, all new repositories are assigned default migration state, which is eligible for import, and we control the migration using a date application setting to say “only import default container repositories created before 2022-01-22.” At some point, we can be confident all new repositories will not need to be imported and we should change the database default migration_state to native.

Proposal

This issue has become relevant as noted in this comment.

Implementation plan:

MR:
  • Change the database default migration status of new repositories from "default" to "native";
Change request
  • Update container_registry_import_created_before to a date far in the future like '9999-12-31 23:59:59'
Edited by Steve Abrams