Task #2907
closedRemove plugin API objects that are not used by core
100%
Description
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. Specifically these objects:
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:
Those two modules should only importer the following objects by name (not with *):
pulpcore.plugin.serializers.ContentSerializer
pulpcore.plugin.serializers.ImporterSerializer
pulpcore.plugin.serializers.PublisherSerializer
pulpcore.plugin.viewsets.ContentViewSet
pulpcore.plugin.viewsets.ImporterViewSet
pulpcore.plugin.viewsets.PublisherViewSet
Updated by amacdona@redhat.com over 7 years ago
We will still need to import master ViewSets and Serializers that the plugins inherit from.
At a minimum, we need to keep:
- pulpcore.plugin.serializers.ContentSerializer
- pulpcore.plugin.serializers.ImporterSerializer
- pulpcore.plugin.serializers.PublisherSerializer
- pulpcore.plugin.viewsets.ContentViewSet
- pulpcore.plugin.viewsets.ImporterViewSet
- pulpcore.plugin.viewsets.PublisherViewSet
Updated by bmbouter over 7 years ago
- Description updated (diff)
@asmacdo, I agree. I also think those are the base minimum set so that plugin writers can inherit from them.
Updated by dkliban@redhat.com over 7 years ago
- Groomed changed from No to Yes
- Sprint Candidate changed from No to Yes
Updated by bizhang over 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to bizhang
Added by werwty over 7 years ago
Updated by bizhang over 7 years ago
- Status changed from ASSIGNED to POST
Updated by werwty over 7 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|61f138412146be235799f2008bf678a27daf9bb4.
Updated by bmbouter almost 7 years ago
- Tags deleted (
Pulp 3 Plugin Writer Alpha)
Cleaning up Redmine tags
Updated by bmbouter almost 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Clean up plugin API
closes #2907 https://pulp.plan.io/issues/2907