-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Slack Button Fix and Threaded Messaging #6020
Conversation
…nto slack-enhancements
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.
Awesome, great to see this new feature! 🥳
oh i didn't mean to rush you i was just checking whether ella had checked with you, thank you very much! |
Co-authored-by: Christina Koß <c.koss@rasa.com>
Co-authored-by: Christina Koß <c.koss@rasa.com>
Co-authored-by: Christina Koß <c.koss@rasa.com>
@b-quachtran let me know when you're ready for me to take another look at this |
…nto slack-enhancements
@akelad Yep, just finished pushing some changes if you can take a look. |
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.
changes made according to christinas review look good, but i had a few more questions sorry!
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.
Nice! I added a couple more small comments in addition to what Akela said.
Co-authored-by: Christina Koß <c.koss@rasa.com>
looks good to me, Christina already approved so you don't need a second approval. But some build stages seem to be failing.. once those are fixed feel free to add the ready to merge label @b-quachtran |
@@ -297,13 +316,18 @@ async def process_message( | |||
|
|||
if metadata is not None: | |||
output_channel = metadata.get("out_channel") | |||
if self.use_threads: | |||
thread_id = metadata.get("ts") |
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.
@b-quachtran This line confuses me - shouldn't it be metadata.get("thread_id")
now? If I'm not mistaken, can you create a PR with a quick fix?
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.
And then we should probably also extend the tests to include a case that would have caught this (e.g. a test where we get a message event, post a reply to the same thread, and assert that everything went as expected).
If you have time, this could go into the PR with the fix, otherwise let's just create an issue to add such a test.
Proposed changes:
Status (please check what you already did):
black
(please check Readme for instructions)