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
Bug 1609081 - Provide full server side search in Alerts view #5835
Bug 1609081 - Provide full server side search in Alerts view #5835
Conversation
6e0946e
to
da3e62c
Compare
Codecov Report
@@ Coverage Diff @@
## master #5835 +/- ##
==========================================
+ Coverage 72.68% 72.69% +0.01%
==========================================
Files 456 456
Lines 18733 18796 +63
Branches 1511 1521 +10
==========================================
+ Hits 13616 13664 +48
- Misses 4790 4806 +16
+ Partials 327 326 -1
Continue to review full report at Codecov.
|
da3e62c
to
5ecb0fe
Compare
72d7529
to
a7f0132
Compare
a7f0132
to
7a8a2f4
Compare
87c8063
to
9bd233e
Compare
6a2f3da
to
9306e2e
Compare
75e2431
to
8ec7a79
Compare
fdf7ca6
to
7a7bfee
Compare
3efc60e
to
4c01901
Compare
71e21de
to
819892b
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.
Looks good.
@sarah-clements could you review this PR? |
@armenzg I noticed you're using Could you lend us |
I've also added the perf sheriffs as reviewers, in advance, so they're more aware of this PR. |
819892b
to
1d5c723
Compare
I've released prototype. |
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.
I'm not as familiar with Django so I can't add a lot of value to the review of the backend code.
I don't see anything outrageous in the code.
.values('id') | ||
.distinct()) | ||
|
||
return queryset.filter(id__in=Subquery(filtered_summaries)) |
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.
Are these results paginated?
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.
Yes, they are automatically paginated by our custom Django-based code. More precisely, here.
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.
I can't remember if I've mentioned this before, but you might find the CustomPaginator useful if you end up profiling this API for performance and see issues. In the past, the count method was performing a full table scan when returning paginated results.
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.
I'm not familiar with django filters so I can't add anything of value regarding it's use. As far as the performance issues Ionut mentioned in the last Perfherder meeting, if that is still an issue I suggest pushing the branch to prototype to test the API and using new relic to give a more detailed analysis of the query than the django debug toolbar can give.
In the future, it'd be preferable to review changes of this size as two separate prs: one for API/backend changes and one for the UI front end changes (even if front end changes are rebased on the backend pr and start from a specific commit, just that commit could be reviewed). It makes it much easier to review, in my opinion.
1d5c723
to
d2c2125
Compare
c46c113
to
c4cc1b3
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.
LGTM, thanks!
No description provided.