This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add some comments about how event push actions are stored #13445
Add some comments about how event push actions are stored #13445
Changes from 2 commits
eb8a3d3
1a35b70
cb3f54b
1dbbd76
f82338d
373cd3e
bcaee0c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Is this double line break on purpose? Are you trying to separate it into two sections (one for counting notifications and one for clearing them?)
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.
Yeah, it was vaguely intentional. Not sure if it helps others or if its just a distraction?
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 think it could be clearer to put a heading:
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.
This paragraph assumes the read receipt is <
S
; I believe it can also happen afterS
in which case we completely clear theevent_push_summary
row and anything inevent_push_actions
which is <= R?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.
Well, I think of
after the receipt but before S
as meaning the empty set if receipt is afterS
. Will clarifyI have somewhat intentionally not said when we trigger removal of
event_push_actions
, as its a bit handwavey and doesn't really affect how this all works.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.
Essentially this causes us to fallback to the "just use
event_push_actions
table", I think?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.
Yup! Though by "fallback" here, that's just the same behaviour as normal (i.e. we always read from the event_push_actions to check for events that have happened since S)
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.
Yup! Though by "fallback" here, that's just the same behaviour as normal (i.e. we always read from the event_push_actions to check for events that have happened since S)
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.
Right. Makes sense!