-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Fix exclusive lists interfering with notifications #28162
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #28162 +/- ##
=======================================
Coverage 82.74% 82.74%
=======================================
Files 1038 1038
Lines 28221 28223 +2
Branches 4552 4552
=======================================
+ Hits 23351 23354 +3
Misses 3784 3784
+ Partials 1086 1085 -1 ☔ View full report in Codecov by Sentry. |
This could be an issue, as this part of the code is in a hot path. I think we might want to rework it so that Home, Notifications and List delivery happen in the same job unit, with a single call to |
@renchap not a lint fix, the additional code needed to wrap around |
@ClearlyClaire does that mean that you/someone will eventually create a PR that refactors this code, and that this PR won't move forward? |
I experimented a bit, and the database schema does not lend itself well to what I was suggesting. So we probably want to keep the current split in jobs, at least for the time being, and instead look into keeping your PR but avoiding the duplicate work between |
Alright, would a symbol return ( |
I think this needs a rebase and CI is frozen, but also -- seems like we've been blocked for about a year on whether we can resolve the performance implications of double crutching? @ShadowJonathan - do you want to rebase and continue to nudge this forward, or should we close? |
I'll take a look at this, thanks for bumping |
1d494ab
to
d50c7d1
Compare
Rebased on (my 2-day-old cached local copy of) |
@ClearlyClaire this has been a year in the making, but what's your opinion on this? |
What about either a symbol or |
Didn't know that symbols were truthy and |
d50c7d1
to
9a0a5b8
Compare
@ClearlyClaire @mjankowski this PR is ready for review. |
Ah, this is a little more awkward and involved than I anticipated, and I missed the bit about the function being called |
@ClearlyClaire applied! The PR should be much cleaner to review now ^^ |
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 wonder if there's a way to make it read less awkward, but it's not too bad, and it should fix an actual issue.
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 see changes to existing specs to handle the signature change - should there be new spec for the fixed/change list scenario here?
Fixes #27316
I had to rename a parameter, and add a function, to make sure this didn't become too much of a messy hack, but i hope that this is at least still a similar level of cleanliness and understanding
The only annoyance is that this is now building crutches twice, the alternative for that would be to have some enum/flag/symbol kind of return ("hide from home, show notif", "don't show notif, hide from home",
:skip_home, :filter
), but that's a lot more refactoringif that's the more clean solution, prompt me, then i'll try to refactor around it