-
-
Notifications
You must be signed in to change notification settings - Fork 745
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
3.0 - source_channel
no longer working for Mistral workflows
#4650
Comments
@blag Can you take a look at this issue and comment? Can we add |
FixIn the past, I believe Possible WorkaroundFor now, if the source channel is available in the FutureAll of this code is ripe for cleanup and migration in the future. I'm of the opinion that since ChatOps is aiming to be agnostic to the chat provider, we shouldn't have special cases for each provider, or for some providers but not all (like here, where we have a special case for chat providers that have Slack-like APIs). In the future, I think all source information should be stuffed into |
SUMMARY
In ST2 3.0, Mistral workflows no longer able to identify
source_channel
that alias was called from.ISSUE TYPE
STACKSTORM VERSION
st2 3.0.0, on Python 2.7.12
OS / ENVIRONMENT / INSTALL METHOD
one-liner, on Ubuntu 16.04.
System upgraded from 2.10.4 to 3.0.0.
STEPS TO REPRODUCE
Create a Mistral workflow that uses
source_channel
, and call it via a Chat alias.Mistral workflow here.
Alias here.
Key lines:
EXPECTED RESULTS
Workflow should post back to the original channel with my message
ACTUAL RESULTS
Workflow fails, because it can't get the value of source_channel. Error similar to
This stems from https://github.com/StackStorm/st2/pull/4609/files#diff-f2911a69b88d56311f8945335e9457b7L148, which is part of PR #4609. If I add that removed line back to
aliasexecution.py
, it works as expected.Looks like this data may be available in the
notify
dict./cc @blag @m4dcoder @emptywee
The text was updated successfully, but these errors were encountered: