-
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
Implemented get_output_channel() fn for SocketIO Channel #5578
Implemented get_output_channel() fn for SocketIO Channel #5578
Conversation
Thanks for submitting a pull request 🚀 @erohmensing will take a look at it as soon as possible ✨ |
Thanks for submitting a pull request 🚀 @degiz will take a look at it as soon as possible ✨ |
Here is some context as to why this feature was implemented: https://forum.rasa.com/t/integrate-rasa-with-live-chat/22314/6 |
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 for the PR! 👌
I've added few comments. Also, do you think we can have a unit test for that change?
@wochinge could you take a look as well? I know you had some concerns. I've tested that change locally and it seems to work ok. What I tried:
- Create two conversation in different browsers
- Inject intents via REST to both conversations, and both did received responses
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 for pulling me in @degiz .
Cool work @alfredfrancis . I didn't know that socketio handles a mapping from sid
to socket
in the background 💯 🚀
To be honest. I am still not entirely convinced since this won't work with multiple Rasa Open Source instances or in case we are using multiple Sanic workers (the latter is not the case at the moment). However, since it probably covers 90% of all use cases, I'm fine with merging it.
- let's add a note that this only works with a single Rasa Open Source instance
- We should also update the API spec here that Socketio works now
rasa/docs/_static/spec/rasa.yml
Line 829 in 2edc18a
- latest
@wochinge @alfredfrancis 💡 Rasa Open Source release is scheduled for next Tuesday April 28th. Any chance we can ship this as part of the milestone? |
I'm waiting for the comments from @wochinge |
@alfredfrancis I have to do another review first, then I'm back on this 👍 |
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.
Great work @alfredcogniwide 🎉 Left two small comments, but otherwise ready to go.
Can you please make sure that the CI tests here pass https://github.com/RasaHQ/rasa/actions/runs/81645737 ? If any results there are wrong, please let me know. We / GitHub recently had some problems with GitHub actions 😞
Co-Authored-By: Tobias Wochinger <[email protected]>
Co-Authored-By: Tobias Wochinger <[email protected]>
Ok, let me try |
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.
@alfredfrancis Can you please also add a changelog entry? 🙏
@alfredfrancis Could you please also sign the CLA? Thanks 🎉 |
Could you help me do this ? Shall I add an entry under [1.9.7] - 2020-04-23 |
Awesome! I quickly added changelog and a small docs change, because we want to include this in the release today 🎉 |
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 for the contribution @alfredfrancis 🙏
Thank you |
You are most welcome ❤️ |
Proposed changes:
Status (please check what you already did):
black
(please check Readme for instructions)