Project

Profile

Help

Task #2907

closed

Remove plugin API objects that are not used by core

Added by bmbouter almost 7 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 23
Quarter:

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:

Cataloger
Profiler

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
serializers.py

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

Also available in: Atom PDF