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

Move content to repos based on certification flag

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: Normal Normal
    • 4.2.0 Cloud Release
    • None
    • None
    • False
    • False
    • None
    • Undefined
    • AAH 4.3.0 Sprint 1

      `CollectionVersion` content with `certification` values of `needs_review` and `not_certified` exist in the `published` repo as part of the introduction of content promotion #20. These need to be moved respectively to the `staging` and `rejected` repos.

      A move means the source repo will get a new `RepositoryVersion` without the content, and the destination repo will get a new `RepositoryVersion` with the content. This is done via model method `Repository.new_version()`

      Moving this content inside migrations has a couple challenges: We cannot access model methods. We cannot utilize the tasking system, so no locks would be on the repos, and this would need to be done when no activity was present.

      Possible approaches:
      1. use a bash script to execute curl posts on all content `move/` endpoints
      2. copy appropriate model methods to migrations

              osapryki Oleksandr Saprykin (Inactive)
              chousekn Chris Houseknecht (Inactive)
              Archiver:
              ranumula@redhat.com Raju Anumula

                Created:
                Updated:
                Archived: