Project

Profile

Help

Task #8522

closed

Ensure compatibility with Distribution changes in pulpcore 3.12

Added by ttereshc over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 98
Quarter:

Description

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'))

Also available in: Atom PDF