Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-25 Cloud environments working with 4.2.0 features
  3. AAH-28

Repositories created by inbound namespace migration are missing associated data

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 4.2.1-b1
    • None
    • Backend
    • False
    • False
    • None
    • Undefined
    • AAH 4.3.0 Sprint 1

      The `Repository` initial `RepositoryVersion` was not created by [0003_inbound_repo_per_namespace](https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/app/migrations/0003_inbound_repo_per_namespace.py), since the `Repository.save()` method is overridden with extra logic and migrations do not apply model methods.

      As seen in CI environment this prevents import to the repo as it references repo.latest().

      A new migration will be needed with necessary model method logic brought over into the migration, to re-create or update these repositories and distributions.

              awcrosby5 Andrew Crosby (Inactive)
              chousekn Chris Houseknecht (Inactive)
              Archiver:
              ranumula@redhat.com Raju Anumula

                Created:
                Updated:
                Resolved:
                Archived: