Bug 1691406

Summary: [RFE] Make the MiqTask#generic_action_with_callback more flexible
Product: Red Hat CloudForms Management Engine Reporter: Daniel Berger <dberger>
Component: V2VAssignee: Daniel Berger <dberger>
Status: CLOSED CURRENTRELEASE QA Contact: Yadnyawalk Tale <ytale>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.10.0CC: bthurber, fdupont, ytale
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: v2v
Fixed In Version: 5.11.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1693717 (view as bug list) Environment:
Last Closed: 2019-12-13 15:09:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Feature
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: V2V Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1683443, 1693717    

Description Daniel Berger 2019-03-21 14:40:36 UTC
The current implementation of the MiqTask#generic_action_with_callback method has some shortcomings that require us to jump through extra hoops on the V2V side.

Specifically, it would be beneficial if that method accepted all options, instead of ignoring most of them. At the moment it only accepts :action and :userid.

It would also be beneficial if that method had the option to return the full task object instead of just the task id so that we don't have to lookup the task again.

Comment 2 Daniel Berger 2019-03-21 14:42:41 UTC
https://github.com/ManageIQ/manageiq/pull/18578

Comment 4 Yadnyawalk Tale 2019-06-14 13:07:41 UTC
Verified on: 5.11.0.8.20190611155126_01e077e