External ref for actions and status-update events (#830)
* Add feature to listen to rollout status update * With this feature, extensions can update back the status of a given rollout using an event(containing distributionSetId and targetId). * In future, AmqpMessageHandlerService can make use of this feature and de-couple its own implementation from performing status update of an action. * Implement ActionStatusUpdateHandlerService using actionId * Extend actions to support externalRef * Update the action status using externalRef. * Update securityContext to support running a callable under specific authorities. * Fixing the review comments * Increase length of externalRef to 128 chars * Remove actionStatusUpdateEvent and the handler service * Use 256 chars for externalRef * Increment the version for migration script * Another feature had use v1_12_12 in a recent PR. So incrementing the version. * Create length limit for externalRef and add it to index * Externalref will be much longer than 256 chars if controllerId is as long as 256 chars * Adding tests for verifying externalRef in controllerManagement * Improve test to consider multiple externalRefs * Fix issue in migration script for mssql server * Fix documentation Signed-off-by: Ravindranath Sandeep (INST-IOT/ESW-Imb) <Sandeep.Ravindranath@bosch-si.com>
This commit is contained in:
committed by
Stefan Behl
parent
e80399bc79
commit
fba6cf9787
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE sp_action ADD COLUMN external_ref VARCHAR(512);
|
||||
CREATE INDEX sp_idx_action_external_ref ON sp_action (external_ref);
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE sp_action ADD COLUMN external_ref VARCHAR(512);
|
||||
CREATE INDEX sp_idx_action_external_ref ON sp_action (external_ref);
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE sp_action ADD COLUMN external_ref VARCHAR(512);
|
||||
CREATE INDEX sp_idx_action_external_ref ON sp_action (external_ref);
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE sp_action ADD external_ref VARCHAR(512);
|
||||
CREATE INDEX sp_idx_action_external_ref ON sp_action (external_ref);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user