-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ref(escalating): Clean up the code #47625
Conversation
These code changes are in preparation to optimizing the Snuba query.
start_date, end_date = _start_and_end_dates() | ||
project_ids, group_ids = _extract_project_and_group_ids(groups) | ||
return _query_with_pagination(project_ids, group_ids, start_date, end_date) |
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.
We move the pagination logic into it's own function since it will make the next PR a lot easier to read.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #47625 +/- ##
==========================================
- Coverage 80.76% 80.76% -0.01%
==========================================
Files 4765 4764 -1
Lines 201451 201441 -10
Branches 11617 11617
==========================================
- Hits 162699 162688 -11
- Misses 38496 38497 +1
Partials 256 256
|
These code changes are in preparation to optimizing the Snuba query.