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 #10137 changes to domain merging #10589
Conversation
4103ed4
to
1c15db6
Compare
69cefca
to
7f030df
Compare
def merge_lists(list1: List[Any], list2: List[Any]) -> List[Any]: | ||
return sorted(list(set(list1 + list2))) | ||
This is used when multiple domain yml files are configured in a single | ||
directory. Unlike the merge method above, which merges Domain objects by |
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.
Is there a reason we can't use this implementation for both?
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.
@joejuzl So this PR is to port the changes from 2.8.x
into main
, which we decided to implement in this way as we were planning to rethink how we handle the domain.
But as we wanted to ensure that main
also handled multiple domain files, we thought it would be better in the short-term to implement this solution...
🚀 A preview of the docs have been deployed at the following URL: https://10589--rasahq-docs-rasa-v2.netlify.app/docs/rasa |
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.
Approving as this is already in 2.8.x. We should come back to this and find a more elegant solution and remove duplication as well like @joejuzl has mentioned in the comment, specifically around similar merge domain methods.
Proposed changes:
closes #10570
2.8.x
in use_entities is broken when domain is split #10137 intomain
2.8.x
PRStatus (please check what you already did):