[Pulp-dev] [Breaking] Minor change to typed repositories
Daniel Alley
dalley at redhat.com
Fri Dec 6 20:04:36 UTC 2019
There is a minor change for Pulp 3 plugin writers Repository models merging
today. It's a very simple one-line code change.
On your Repository subclass, define the CONTENT_TYPES constant as a list
with all of the Content types (the classes) supported by this type of
repository, like this:
https://github.com/pulp/pulp_container/pull/25/files#diff-90a314d7b2d5ddb20d360be02a4ec146R189
This change will allow for better performance and validation inside of
Pulpcore, as it knows what types it's dealing with ahead of time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-dev/attachments/20191206/257ea70d/attachment.htm>
More information about the Pulp-dev
mailing list