-
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
Add verify stories and rules actions in domain to rasa data validate #8645
Conversation
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.
Where can I find a clear Definition of Done for the issue? It's unclear to me what items need to be covered.
@wochinge Indeed, there is no clear Definition of Done in the issue, I worked my way through the problems listed on the issue thread, which were:
There was mentioned something about adding validation for |
dc883de
to
71ca0a0
Compare
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 end, I've decided that adding support for |
sounds good! Do you create a new issue or do we keep track of the remaining work in the old issue? |
rasa/validator.py
Outdated
|
||
if event.action_name not in self.domain.action_names_or_texts: | ||
rasa.shared.utils.io.raise_warning( | ||
f"The action '{event.action_name}' is used in your stories, but it " |
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.
what if it's a rule?
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 for rules too, I can rephrase to 'stories or rules'?
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.
I believe there is also an attribute on the story steps which states which one it is. How about also including the story / rule name in the warning so the training story / rule is easier to find for them?
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.
I've had a look, but source_name
attribute shows the entire path of the file, so instead I used block_name
attribute to refer to the title of the story or rule. I'll push the changes once I amend the test assertions too :)
I'll create a new issue for this. |
Proposed changes:
Status (please check what you already did):
black
(please check Readme for instructions)