-
Notifications
You must be signed in to change notification settings - Fork 898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include task_id in result of ResourceActionWorkflow#process_request #17788
Conversation
cedf6bb
to
30ebb59
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I am good with this change, one small comment. Will merge when @eclarizio has a change to review/approve.
subject { ResourceActionWorkflow.new({}, admin, resource_action, :target => target) } | ||
let(:resource_action) { @resource_action } | ||
let(:task) { double } | ||
|
||
before { allow(task).to receive(:id).and_return(0) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, but I think we should have the test return a non-zero value which is more inline with what we would expect from the db.
30ebb59
to
25be312
Compare
Some comments on commit skateman@25be312 spec/models/resource_action_workflow_spec.rb
|
1 similar comment
Some comments on commit skateman@25be312 spec/models/resource_action_workflow_spec.rb
|
Checked commit skateman@25be312 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Removed |
When invoking a custom button action with a dialog through the API, it is needed to access the created task. This one-liner should include the required task id in the result which can be propagated further in the API.
@miq-bot add_reviewer @pkomanek
@miq-bot add_reviewer @ZitaNemeckova
@miq-bot add_label gaprindashvili/yes, bug
https://bugzilla.redhat.com/show_bug.cgi?id=1602023