-
Notifications
You must be signed in to change notification settings - Fork 8
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
Set workflow description from asl comment #76
Set workflow description from asl comment #76
Conversation
@@ -76,8 +76,26 @@ def sync_from_content(to_delete) | |||
end | |||
|
|||
def create_workflow_from_payload(name, payload) | |||
floe_workflow, payload_error = | |||
begin | |||
Floe::Workflow.new(payload) |
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.
I had this depend on #59 because we were already loading the Floe::Workflow there
[nil, err.message] | ||
end | ||
|
||
comment = floe_workflow&.payload&.[]("Comment") |
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.
TODO I think having Floe::Workflow#comment
accessor would be cleaner
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.
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.
🙇 thanks!, released v0.10.0 with that change
9c008e4
to
6f75795
Compare
Can we merge this without the sync PR? |
6f75795
to
25b5c2c
Compare
25b5c2c
to
57b8bf5
Compare
Okay rebased to not depend on #59 |
nil | ||
end | ||
|
||
description = floe_workflow&.comment |
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.
Yay
We do something similar if you manually create a Workflow from a json payload since we don't have a file path, https://github.com/ManageIQ/manageiq-providers-workflows/blob/master/app/models/manageiq/providers/workflows/automation_manager/workflow.rb#L4 and I thought it'd add a nice "human readable" description