[Pulp-dev] app label changes merged, update your plugin

Tatiana Tereshchenko ttereshc at redhat.com
Fri Feb 1 15:27:09 UTC 2019


Hi all,

There was a thread here about namespacing plugins + the idea of dropping
`pulp_` from the app label.
Those changes [0] are merged now and some plugins have already been updated.

It is not necessary but it's encouraged to update the label of your plugin
- to drop 'pulp_' part of it if you followed that convention.
If you intend to change your app label, do so before you start committing
migrations since the app label is used to name tables in the DB.
Even if you hesitant to change the label, take a look at the changes in
viewsets [1], you'd probably like to adjust endpoint_name anyway.
See pulp_file PR[1] as an example of changes to be made (the __init__.py
and changes in viewsets are most important, the rest are docs mostly).

Useful for any dev:
If you use one of the plugins which changed their app label in your dev
environment, you need to recreate plugin migrations after app label is
changed.
E.g. for pulp_file:
 remove everything from the migrations directory of the plugin, e.g. rm
-rf  pulp_file/app/migrations/
 pulp-manager makemigrations *file*
 pulp-manager migrate

[0] https://pulp.plan.io/issues/4279#note-12
[1] https://github.com/pulp/pulp_file/pull/157/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-dev/attachments/20190201/aa4df13f/attachment.htm>


More information about the Pulp-dev mailing list