Project

Profile

Help

Story #3044

Updated by jortel@redhat.com about 5 years ago

To prevent race conditions related to base_path checking, Distribution create & update CRUD operations need to be done asynchronously under the protection of resource locking. 

 The plan: 
 * The locked resource will be a _(string)_ URL for the distribution resource collection: _" /api/v3/distributions/"_ 
 * The base_path checking needs to be moved from the serializer to the model. 
 * Create a new _AsyncCreateMixin_ following the same pattern as update & delete mixins. 
 * The DistributionViewSet will use the _AsyncUpdateMixin_, _AsyncDeleteMixin_, and _AsyncCreateMixin_ 

Back