pulp_ansible icon indicating copy to clipboard operation
pulp_ansible copied to clipboard

Bring missing data models from galaxy ng to pulp ansible

Open pulpbot opened this issue 4 years ago • 2 comments

Namespaces

Move the following into pulp ansible:

  • Namespace Models: https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/app/models/namespace.py
  • Namespace Viewsets: https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/app/api/v3/viewsets/namespace.py
  • Namespace Serializers: https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/app/api/v3/serializers/namespace.py

The namespace viewset is currently provided at v3/namespaces in galaxy_ng. The viewset should be served from v3/plugin/ansible/namespaces/ with a redirect from v3/namespaces for backwards compatibility.

CollectionImport

  • Update the existing collection import model with the extra fields defined in galaxy ng: https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/app/models/collectionimport.py
  • Update the existing import api to match galaxy_ng's UI implementation: https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/app/api/ui/viewsets/collection.py#L302

pulpbot avatar Nov 17 '21 19:11 pulpbot

cc @gerrod3 @mdellweg ^

newswangerd avatar Jul 14 '22 15:07 newswangerd

Where does the name v3/plugin/ansible/namespaces/ come from? I'm fine with whatever you want the v3 api to be structured. Just curious what kind of a plugin you are referring to here.

mdellweg avatar Jul 15 '22 10:07 mdellweg