Pass slack_message_id into the orquesta workflow context #6257
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to StackStorm/hubot-stackstorm#237 this improves orquesta workflows by passing along the
slack_message_id
if its found in the payload from an action-alias execution.This ID can then be used with slack pack actions to respond in a thread when using the default action-alias result does not facilitate the needs of the workflow (One example being uploading multiple files).
I can update the changelog, docs and potentially the orquesta_runner test_context.py if this is something that would be approved.
The new context key would be available like
api_user
,source_channel
anduser
using<% ctx(st2).slack_message_id %>
Question
One thing I'm not familiar with is the other chat backend payloads, is it possible that
payload.source_context['message']['id']
exists in other backends in which case the key name ofslack_message_id
would be a bit misleading?