Skip to content
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

Rename Form to Loop event #6409

Closed
4 of 5 tasks
wochinge opened this issue Aug 14, 2020 · 11 comments
Closed
4 of 5 tasks

Rename Form to Loop event #6409

wochinge opened this issue Aug 14, 2020 · 11 comments
Assignees
Labels
area:rasa-x/backend 🎩 All issues focused on the Rasa X backend area:rasa-x/ui ✨ All issues focused on the Rasa X frontend type:maintenance 🔧 Improvements to tooling, testing, deployments, infrastructure, code style.

Comments

@wochinge
Copy link
Contributor

wochinge commented Aug 14, 2020

As part of the RulePolicy refactoring, we introduced the concept of a Loop which represents conversation parts which are

  • unfeaturized to ML policies
  • which are driven by hardcoded rules / if and elses

In contrast Forms to request information from the user and fill required slots.

This means every Form is a Loop, but not every Loop is a Form. E.g. the TwoStageFallback was implemented using the Loop concept but it's not a Form.

  • Rename the Form event to Loop event
  • make sure that old Form events can still be retrieved from the tracker stores
  • adapt Rasa X frontend
  • adapt Rasa X backend active_form not required (the tests which involve this are commented out anyway)
  • enable Rasa SDK to parse active_loop events
@wochinge wochinge added type:maintenance 🔧 Improvements to tooling, testing, deployments, infrastructure, code style. area:rasa-oss 🎡 Anything related to the open source Rasa framework labels Aug 14, 2020
@wochinge wochinge self-assigned this Aug 14, 2020
@wochinge
Copy link
Contributor Author

wochinge commented Aug 17, 2020

@mjaycub Do you know if there is any special handlings for Rasa Open Source form events in the frontend? form events are events like user or bot. Just a different type. I did a text search but couldn't find anything. Or are you using active_form somewhere?

@mjaycub
Copy link
Contributor

mjaycub commented Aug 18, 2020

@wochinge I can have a look tomorrow if you'd like, today is blocked up by IVC work

@wochinge
Copy link
Contributor Author

That would be great. It's not critical but needs to be done for 2.0 compatibility.

@mjaycub
Copy link
Contributor

mjaycub commented Aug 19, 2020

@wochinge it doesn't look like we do anything special with form events, and we don't ever seem to use active_form at the moment. I think all we'll need to do is add a type for LoopEvent and make sure we update the isEvent check in ConversationStoryViewer (here) to include a check for loop.

Will I open a PR with these changes?

@wochinge
Copy link
Contributor Author

Will I open a PR with these changes?

I don't know. Will you? 😄 I'd hold off a bit - could be that also rename FormValidation. I'll give you a heads up 👍

@mjaycub
Copy link
Contributor

mjaycub commented Aug 19, 2020

don't know. Will you? 😄

Haha, was just curious if you wanted to touch the frontend or if you wanted me to do it! 😄I can do it, just follow up when you thing it's time to do so 👍

@wochinge
Copy link
Contributor Author

wochinge commented Aug 21, 2020

As part of the Form changes in Rasa X we also need to do the changes from renaming the FormValidation event (#6463)

And FORM_PREFIX: https://github.com/RasaHQ/rasa/issues

@mjaycub
Copy link
Contributor

mjaycub commented Aug 24, 2020

@wochinge @chkoss Since this issue is now closed, please keep me in the loop as we will need to make some updates on the frontend if we rename!

@wochinge
Copy link
Contributor Author

re-opening this. Doesn't make sense to close it at this stage 👍

@wochinge wochinge reopened this Aug 31, 2020
@wochinge wochinge added area:rasa-x/backend 🎩 All issues focused on the Rasa X backend area:rasa-x/ui ✨ All issues focused on the Rasa X frontend and removed area:rasa-oss 🎡 Anything related to the open source Rasa framework labels Sep 16, 2020
@wochinge
Copy link
Contributor Author

Feel free to wrap this up. Otherwise I can do it when I'm back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-x/backend 🎩 All issues focused on the Rasa X backend area:rasa-x/ui ✨ All issues focused on the Rasa X frontend type:maintenance 🔧 Improvements to tooling, testing, deployments, infrastructure, code style.
Projects
None yet
Development

No branches or pull requests

3 participants