Project

Profile

Help

Task #6986

Updated by daviddavis almost 4 years ago

# Problem 

 We ran into [an issue](https://pulp.plan.io/issues/6974) where the publication was being created and returned to the user before the publication create task was completed. The plugin_template data was incomplete, not valid, and caused the bindings to raise an error. 

 # Solution 

 * Add a complete field to Publication just like [RepositoryVersion has](https://github.com/pulp/pulpcore/blob/master/pulpcore/app/models/repository.py#L399). Like RepositoryVersion, this field should default to false.  
 * Have `Publication.__exit__()` set this field to True. 
 * Hide all instances of incomplete Publications from the user. It may also be updated necessary to hide publications that aren't complete. see where else we may need to filter Publications.  

Back