Project

Profile

Help

Refactor #3074

Updated by amacdona@redhat.com almost 7 years ago

Most of the work of this move will be handled by plugins, so refactor tasks will be created to implement this change for each plugin. The scope of this refactor should be limited to Importers/sync for now, so Publish is deliberately left out for now. 

 The pulpcore changes are: 
 # Remove models.Importer.sync 
 # Remove the viewsets.Importer.sync detail route 
 # remove the sync task from tasks/importer.py 

 Plugin refactor issues should: 
 # Create a celery task (probably called `sync`) in pulp_myplugin.app.tasks.py 
 # define a POST detail route (probably called sync) on MyTypeImporterViewset that deploys the celery task with appropriate locks. This viewset should accept `repository` as a POST body parameter. 

Back