-
Notifications
You must be signed in to change notification settings - Fork 3
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
Restart dialogs #85
Restart dialogs #85
Conversation
@wbaccinelli , could you please take a look what I am missing in actions_idle_commands.py to let the state machine figure out whether there is an uncompleted dialog after the user types "verder"? |
Rasa_Bot/actions/helper.py
Outdated
UserInterventionState.users_nicedayuid == user_id, | ||
UserInterventionState.intervention_component_id == intervention_component_id | ||
) |
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.
in the table there is also the completed
field that we can check to filter out the results.
UserInterventionState.users_nicedayuid == user_id, | |
UserInterventionState.intervention_component_id == intervention_component_id | |
) | |
UserInterventionState.users_nicedayuid == user_id, | |
UserInterventionState.intervention_component_id == intervention_component_id | |
UserInterventionState.completed.is_(False) | |
) |
Moving everythting to the FSM was too complicated, so the actions will check the presence of uncompleted dialog, and the FSM will trigger the right one. In the FMS there is also an additional layer of checking, in case the user types 'verder' (which triggers the rule for continuing the dialog in any case) when this is not allowed. |
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.
It works perfectly! I added the mechanism for the menu selection and for starting the dialog to be continued. Let me know if it looks good to you
filter for uncompleted dialogs only Co-authored-by: Walter Baccinelli <100706999+wbaccinelli@users.noreply.github.com>
SonarCloud Quality Gate failed. |
Fixes PerfectFit-project/virtual-coach-issues#296 for the goal-setting dialog.