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

Slot Mappings: Remove unnecessary checks in Validator.verify_slot_mappings() #10233

Closed
1 task
ancalita opened this issue Nov 16, 2021 · 2 comments
Closed
1 task
Labels
area:rasa-oss/cli Issues focused on the rasa command-line-interface area:rasa-oss 🎡 Anything related to the open source Rasa framework feature:3.0/slot-mappings type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@ancalita
Copy link
Member

ancalita commented Nov 16, 2021

Context: The newly added method Validator.verify_slot_mappings had originally 2 checks that don't make sense any more (would incorrectly cause rasa data validate to fail):

  1. if form_slots and slot.name not in form_slots statement should be removed because it didn't take into account the case of dynamic slots requested dynamically by forms.

  2. if mapping.get("type") == str(SlotMapping.FROM_TRIGGER_INTENT) and slot.name not in all_required_slots statement should be removed since we're recommending in the docs that any slots that are filled with info from a form trigger intent should have a mapping without conditions to prevent the form from re-asking for this slot again.

Definition of Done:

  • the 2 if statements listed above are removed and tests adapted/removed for these 2 cases.
@ancalita ancalita added area:rasa-oss 🎡 Anything related to the open source Rasa framework area:rasa-oss/cli Issues focused on the rasa command-line-interface feature:3.0/slot-mappings labels Nov 16, 2021
@rasabot-exalate rasabot-exalate added area:rasa-oss and removed area:rasa-oss 🎡 Anything related to the open source Rasa framework labels Mar 15, 2022 — with Exalate Issue Sync
@rasabot rasabot added area:rasa-oss 🎡 Anything related to the open source Rasa framework and removed area:rasa-oss labels Mar 16, 2022
@rasabot-exalate rasabot-exalate added area:rasa-oss area:rasa-oss 🎡 Anything related to the open source Rasa framework and removed area:rasa-oss 🎡 Anything related to the open source Rasa framework area:rasa-oss labels Mar 17, 2022 — with Exalate Issue Sync
@ancalita
Copy link
Member Author

Item number 2 was taken care of in PR #11588.

@m-vdb m-vdb added the type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. label Oct 7, 2022
@sync-by-unito
Copy link

sync-by-unito bot commented Dec 16, 2022

➤ Maxime Verger commented:

💡 Heads up! We're moving issues to Jira: https://rasa-open-source.atlassian.net/browse/OSS.

From now on, this Jira board is the place where you can browse (without an account) and create issues (you'll need a free Jira account for that). This GitHub issue has already been migrated to Jira and will be closed on January 9th, 2023. Do not forget to subscribe to the corresponding Jira issue!

➡️ More information in the forum: https://forum.rasa.com/t/migration-of-rasa-oss-issues-to-jira/56569.

@m-vdb m-vdb closed this as completed Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss/cli Issues focused on the rasa command-line-interface area:rasa-oss 🎡 Anything related to the open source Rasa framework feature:3.0/slot-mappings type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

4 participants