Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-281

Make installing initial data easier.

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 4.4cloud01, 2.0
    • 2.0
    • None
    • None
    • AAH Sprint 6

      Create management command to populate the initial data galaxy_ng needs.

       

      Motivation

      Currently initial data is supposed to be populated using an Ansible Collection: https://galaxy.ansible.com/ansible/galaxy_collection

      However, other environments, e.g. container environments and dev environments don't use that, instead they use a fixture-style data population: https://raw.githubusercontent.com/ansible/galaxy_ng/master/dev/automation-hub/initial_data.json

       

      This is problematic because a) we don't have a single source of truth and b) the official way to do it is being ignored in favor of simpler methods.

       

      Solution

      Ship a data migration that uses get_or_create to create the data. This would cause new installs to receive it, and existing installs that already have it to be unmodified.

              rochacbruno@redhat.com Bruno Rocha
              bmbouter Brian Bouterse
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: