Ensure compatibility with Distribution changes in pulpcore 3.12
Pulpcore 3.12 introduced new class Distribution and it deprecates the BaseDsitribution class.
Pulp content plugins will adjust to that change at some point before pulpcore 3.13 is out.
Pulp 2to3 migration needs to do it as well. It uses 1to1 relatioship to BaseDistribution here.
Other requirements are:
- migration plugin data migration can only be run after all the supported plugins have been migrated to using new Distribution class.
- all content plugins are optional, so we can not require unconditionally to have certain versions of content plugins being installed or their migration being run.
Consider this Django approach to meet the requirement above. Taken from the Django docs:
if global_apps.is_installed('old_app'): dependencies.append(('old_app', '0001_initial'))
<dalley> ttereshc, I remember one of the issues I had when I was trying this approach out <dalley> apparently the way app loading is done in django 2.2, the global_apps.is_installed() doesn't use the same "name" as other mechanisms. you have to put like pulp_file.app or something instead of just "file" <dalley> I got the impression that it's unintended but not normally a problem unless you're doing weird things with app loading like we are
Please register to edit this issue