Skip to content
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

Merged
merged 4 commits into from
Apr 19, 2023
Merged

Conversation

armenzg
Copy link
Member

@armenzg armenzg commented Apr 19, 2023

These code changes are in preparation to optimizing the Snuba query.

These code changes are in preparation to optimizing the Snuba query.
@armenzg armenzg added this to the Escalating Issues V1 milestone Apr 19, 2023
@armenzg armenzg self-assigned this Apr 19, 2023
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 19, 2023
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)
Copy link
Member Author

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
Copy link

codecov bot commented Apr 19, 2023

Codecov Report

Merging #47625 (9f29ee2) into master (5b1edbc) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 9f29ee2 differs from pull request most recent head 659e119. Consider uploading reports for the commit 659e119 to get more accurate results

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              
Impacted Files Coverage Δ
src/sentry/issues/escalating.py 100.00% <100.00%> (ø)

... and 9 files with indirect coverage changes

@armenzg armenzg marked this pull request as ready for review April 19, 2023 14:03
@armenzg armenzg requested a review from a team April 19, 2023 14:03
@armenzg armenzg merged commit 8dfe412 into master Apr 19, 2023
@armenzg armenzg deleted the armenzg/escalating/refactor branch April 19, 2023 19:51
@github-actions github-actions bot locked and limited conversation to collaborators May 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants