Project

Profile

Help

Refactor #3296

Updated by amacdona@redhat.com over 6 years ago

This task is to: 
 # Create a celery task called `publish` in pulp_file.app.tasks.py 
 # define a POST detail route called publish on FilePublisherViewset FileImporterViewset that deploys the celery task. This viewset should accept `repository`    or `repository_version` as a POST body parameter. If `repository` is passed, the latest version should be determined and used as `repository_version`. 

 The logic defined in the task should be taken from models.FilePublisher.publish. Validation and setting the working directory from pulpcore.tasks.publisher.publish should also be added to this task.

Back