Skip to content

Commit

Permalink
Remove Distribution from plugin API
Browse files Browse the repository at this point in the history
The Distribution object was split into two objects for concrete use by
users. The models are available for plugin writers to reference, but the
serializers and viewsets are designed to always be provided by core so
they are not available through the plugin API.

Required PR: pulp/pulpcore#124

https://pulp.plan.io/issues/4785
closes #4785
  • Loading branch information
Brian Bouterse committed May 9, 2019
1 parent 0e41c9f commit c137383
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions pulpcore/plugin/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@
Content,
ContentArtifact,
CreatedResource,
Distribution,
MasterModel,
Model,
ProgressBar,
ProgressSpinner,
Publication,
PublicationDistribution,
PublishedArtifact,
PublishedMetadata,
Repository,
RemoteArtifact,
RepositoryContent,
RepositoryVersion
RepositoryVersion,
RepositoryVersionDistribution,
)

from .content import ContentGuard # noqa
Expand Down
1 change: 0 additions & 1 deletion pulpcore/plugin/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
ArtifactSerializer,
AsyncOperationResponseSerializer,
BaseDistributionSerializer,
DistributionSerializer,
ContentGuardSerializer,
NoArtifactContentSerializer,
SingleArtifactContentSerializer,
Expand Down
1 change: 0 additions & 1 deletion pulpcore/plugin/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
ContentGuardFilter,
ContentGuardViewSet,
ContentViewSet,
DistributionViewSet,
NamedModelViewSet,
PublicationViewSet,
PublisherViewSet,
Expand Down

0 comments on commit c137383

Please sign in to comment.