Auto publish Composite if component updates
|Assigned To:||Partha Aji|
|Target version:||Team Brad - Iteration 27|
|Velocity based estimate||-|
|Release||Katello 3.7.0||Release relationship||Auto|
Currently in a Composite CV we can choose the latest version of a component cv to be automatically included.
A useful complementary feature in CI environment is to be able to automatically publish a Composite when a component cv gets updated.
Fixes #21994 - Auto Publish composite
This commit contains code to auto publish a composite when a component
When a component cv publishes it checks for 2 flags
1) If its composite has auto publish marked as true
2) If its composite wants the latest version of this component.
If those conditions are met then the publish tasks for the composites
are spawned. The user is notified once the operation is completed. The
'triggering' content view's version id is stored in the content view
history so that the caller can track other publishes that are happening
at the same time.
It is assumed that the composite is not getting published
else where at the same time. If that is the case the publish will error