-
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
changed the generator to load full tracker including all sessions + added markers changelog #10170
Conversation
…h multiple sessions is correctly read.
… test function to fixture.
…markers_bugfix * 'markers_bugfix' of https://github.com/RasaHQ/rasa: Fix model dir (#10164) add changelog entry about tf2.6 update (#10153) conversation_granularity for slack - per user | per user per channel | per user per thread (#10086) add changelog fragment for docs changes in 3.0 fix syntax in training data example in the docs
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.
🚀
- using tmp_path - using len() instead of hardcoded number of events.
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.
LGTM
Thanks both for a speedy review 🚀 |
@@ -20,6 +21,29 @@ def marker_trackerstore() -> TrackerStore: | |||
return store | |||
|
|||
|
|||
def test_load_sessions(tmp_path): |
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.
def test_load_sessions(tmp_path): | |
def test_load_sessions(tmp_path : Path): |
def test_load_sessions(tmp_path): | ||
"""Tests loading a tracker with multiple sessions.""" | ||
domain = Domain.empty() | ||
store = SQLTrackerStore(domain, db=os.path.join(tmp_path, "temp.db")) |
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.
btw, with paths, you can also do things like
store = SQLTrackerStore(domain, db=os.path.join(tmp_path, "temp.db")) | |
store = SQLTrackerStore(domain, db= tmp_path / "temp.db") |
Proposed changes:
MarkerTrackerLoader
to load the full tracker usingretrieve_full_tracker
instead ofretrieve
.Fixes The result of markers evaluations doesn't seem to detect/include markers in all cases #10124
Status (please check what you already did):
black
(please check Readme for instructions)