-
Notifications
You must be signed in to change notification settings - Fork 47
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
feat: add timing for results filtering #142
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.
See my comments inline.
search/api.py
Outdated
processing_time['end'] = time.time() | ||
search_time['end'] = time.time() | ||
|
||
processing_time_in_seconds = processing_time['end'] - processing_time['start'] |
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.
Can we please wrap all these into a separate function? That way, we can add a set of unit test to ensure the calculation and event sending
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.
looks good, a couple of extra fields would I think help in the end
also needs a bump in the version number which is in the weird little edxsearch application, maybe 3.8.0 for a nonbreaking but interesting change
we probably don't want to actually cut and release 3.8.0 until after the break but we can set up for it
oh also you can probably collapse the commits together on/before merge, they don't look super informational |
621be29
to
9150b0a
Compare
9150b0a
to
d2e29e0
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.
👍
For KBK-57
Adds a
edx.course.search.executed
event with timings for