Project

Profile

Help

Task #2907

Updated by bmbouter over 6 years ago

The plugin API has several placeholder objects that are not used by the plugin. It's very possible these objects won't be in the GA release even based on the "MVP":https://pulp.plan.io/projects/pulp/wiki/Pulp_3_Minimum_Viable_Product. Specifically these objects: 

 "Cataloger":https://github.com/pulp/pulp/blob/3.0-dev/plugin/pulpcore/plugin/cataloger.py 
 "Profiler":https://github.com/pulp/pulp/blob/3.0-dev/plugin/pulpcore/plugin/profiler.py 

 We also need to remove almost all or all of the serializers and viewsets which are currently mass-imported into pulpcore.plugin. 

 Only bring in viewsets and serializers that the plugin writer is intended to subclass. That would involve changing these two imports: 

 "viewsets.py":https://github.com/pulp/pulp/blob/3.0-dev/plugin/pulpcore/plugin/viewsets.py 
 "serializers.py":https://github.com/pulp/pulp/blob/3.0-dev/plugin/pulpcore/plugin/serializers.py 

 Those two modules should only importer the following objects by name (not with *): 

 <pre> 
 pulpcore.plugin.serializers.ContentSerializer 
 pulpcore.plugin.serializers.ImporterSerializer 
 pulpcore.plugin.serializers.PublisherSerializer 
 pulpcore.plugin.viewsets.ContentViewSet 
 pulpcore.plugin.viewsets.ImporterViewSet 
 pulpcore.plugin.viewsets.PublisherViewSet 
 </pre>

Back