Support parents field along with planner changes
This patch set allows python-watcherclient to show parents field instead of next_uuid field. Partially Implements: blueprint planner-storage-action-plan Change-Id: I00cefd2ba6dad5daa6470c851c2fdfb7c22d7a63 Depends-On: Ide2c8fc521488e486eac8f9f89d3f808ccf4b4d7
This commit is contained in:
parent
4a093e168d
commit
b8666d511e
watcherclient
@ -29,7 +29,7 @@ ACTION_1 = {
|
||||
'action_plan_uuid': 'f8e47706-efcf-49a4-a5c4-af604eb492f2',
|
||||
'state': 'PENDING',
|
||||
'action_type': 'migrate',
|
||||
'next_uuid': '239f02a5-9649-4e14-9d33-ac2bf67cb755',
|
||||
'parents': ['239f02a5-9649-4e14-9d33-ac2bf67cb755'],
|
||||
'input_parameters': {"test": 1},
|
||||
'created_at': datetime.datetime.now().isoformat(),
|
||||
'updated_at': None,
|
||||
@ -41,7 +41,7 @@ ACTION_2 = {
|
||||
'action_plan_uuid': 'f8e47706-efcf-49a4-a5c4-af604eb492f2',
|
||||
'state': 'PENDING',
|
||||
'action_type': 'migrate',
|
||||
'next_uuid': '67653274-eb24-c7ba-70f6-a84e73d80843',
|
||||
'parents': ['67653274-eb24-c7ba-70f6-a84e73d80843'],
|
||||
'input_parameters': {"test": 2},
|
||||
'created_at': datetime.datetime.now().isoformat(),
|
||||
'updated_at': None,
|
||||
@ -51,7 +51,7 @@ ACTION_2 = {
|
||||
ACTION_3 = {
|
||||
'uuid': '67653274-eb24-c7ba-70f6-a84e73d80843',
|
||||
'action_plan_uuid': 'a5199d0e-0702-4613-9234-5ae2af8dafea',
|
||||
'next_uuid': None,
|
||||
'parents': [],
|
||||
'state': 'PENDING',
|
||||
'action_type': 'sleep',
|
||||
'created_at': datetime.datetime.now().isoformat(),
|
||||
|
@ -61,18 +61,18 @@ ACTION_PLAN_SHORT_LIST_FIELD_LABELS = ['UUID', 'Audit', 'State',
|
||||
'Updated At', 'Global efficacy']
|
||||
|
||||
# Action
|
||||
ACTION_FIELDS = ['uuid', 'created_at', 'updated_at', 'deleted_at', 'next_uuid',
|
||||
ACTION_FIELDS = ['uuid', 'created_at', 'updated_at', 'deleted_at', 'parents',
|
||||
'state', 'action_plan_uuid', 'action_type',
|
||||
'input_parameters']
|
||||
|
||||
ACTION_FIELD_LABELS = ['UUID', 'Created At', 'Updated At', 'Deleted At',
|
||||
'Next Action', 'State', 'Action Plan', 'Action',
|
||||
'Parents', 'State', 'Action Plan', 'Action',
|
||||
'Parameters']
|
||||
|
||||
ACTION_SHORT_LIST_FIELDS = ['uuid', 'next_uuid',
|
||||
ACTION_SHORT_LIST_FIELDS = ['uuid', 'parents',
|
||||
'state', 'action_plan_uuid', 'action_type']
|
||||
|
||||
ACTION_SHORT_LIST_FIELD_LABELS = ['UUID', 'Next Action', 'State',
|
||||
ACTION_SHORT_LIST_FIELD_LABELS = ['UUID', 'Parents', 'State',
|
||||
'Action Plan', 'Action']
|
||||
# Goals
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user