Convert celery task repo.publish to Pulp 3
Task name in Pulp 2: `pulp.server.managers.repo.publish.publish`.
Task implementation in Pulp 2: https://github.com/pulp/pulp/blob/3.0-dev/server/pulp/server/controllers/repository.py#L1039
1. Query for the instance of the Publisher's Master model that needs to publish.
2. Cast that Publisher master instance to a detail instance
3. Set the working_dir attribute on the detail instance with the working_dir context manager.
4. Call publish (it should take no arguments)
The comments in platform/pulp/plugin/models/publisher.py need to be revised.
#7 Updated by firstname.lastname@example.org over 2 years ago
We probably ought to do some business checks related to preventing relative_path collisions as well.
This sounds good, but I can't picture what it looks like. Can you describe the check a little more?
We do it in rpm now, but I think it should be a general tool.
Please register to edit this issue