-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecates BaseDistribution and related objects
This deprecates the following objects and adds warnings when they are used: * `pulpcore.plugin.models.BaseDistribution` * `pulpcore.plugin.viewset.BaseDistributionViewSet` * `pulpcore.plugin.viewset.DistributionFilter` * `pulpcore.plugin.serializer.BaseDistributionSerializer` * `pulpcore.plugin.serializer.PublicationDistributionSerializer` * `pulpcore.plugin.serializer.RepositoryVersionDistributionSerializer` closes #8385
- Loading branch information
Showing
4 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The following objects were deprecated: | ||
* ``pulpcore.plugin.models.BaseDistribution`` -- Instead use | ||
``pulpcore.plugin.models.Distribution``. | ||
* ``pulpcore.plugin.viewset.BaseDistributionViewSet`` -- Instead use | ||
``pulpcore.plugin.viewset.DistributionViewSet``. | ||
* ``pulpcore.plugin.serializer.BaseDistributionSerializer`` -- Instead use | ||
``pulpcore.plugin.serializer.DistributionSerializer``. | ||
* ``pulpcore.plugin.serializer.PublicationDistributionSerializer`` -- Instead use define the | ||
``publication`` field directly on your detail distribution object. See the docstring for | ||
``pulpcore.plugin.serializer.DistributionSerializer`` for an example. | ||
* ``pulpcore.plugin.serializer.RepositoryVersionDistributionSerializer`` -- Instead use define the | ||
``repository_version`` field directly on your detail distribution object. See the docstring for | ||
``pulpcore.plugin.serializer.DistributionSerializer`` for an example. | ||
* ``pulpcore.plugin.viewset.DistributionFilter`` -- Instead use | ||
``pulpcore.plugin.viewset.NewDistributionFilter``. | ||
|
||
.. note:: | ||
|
||
You will have to define a migration to move your data from | ||
``pulpcore.plugin.models.BaseDistribution`` to ``pulpcore.plugin.models.Distribution``. See the | ||
pulp_file migration 0009 as a reference example. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters