Project

Profile

Help

Story #3173

Updated by dkliban@redhat.com over 2 years ago

The syncing with an importer portion of the plugin writer's guide needs to be updated. The guide needs to explain that it's the author's responsibility to



- define a UserFacingTask that creates a new RepositoryVersion of a repository by syncing with a specific importer.
>

- the task should create a repository version and add it to `task.created_resources` the task's created list in a single transaction
>

- the task should add / remove content using the Importer to drive the download API
>

- the task should set the repository version's to complete field to true after all content manipulation is done

- define a detail route on the Importer ViewSet for 'sync' that accepts a 'repository' POST body parameter
>

- the route should perform validation and then dispatch the the sync task with reservations for the repository and the importer.

Back