Project

Profile

Help

Task #3033

Updated by jortel@redhat.com over 6 years ago

Add Publication API endpoint to support listing and deleting publications.    The URL should be nested under the publisher.    Publications are immutable but can be deleted when not referenced by a Distribution.    This will be enforced by the integrity constraints. 

 Use Cases: 
 * As a user, I want to list publications created by a publisher to support: 
 > * Knowing what publications have been created. 
 > * Manually update a Distribution.    (manual promotion). 

 * As a user, I want to delete publications: 
 > * A Specific publication.    URL something like: "../publishers/<id>/publications/<id>/" publication(s). 
 > * All publications not referenced by a Distribution. 


 The Distribution FK to Publication is currently on_delete=SET_NULL but thinking we should probably change it to on_delete=PROTECT to ensure that an _active_ publication isn't ruined by mistake.

Back