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.
Track device list updates per room. #12321
Track device list updates per room. #12321
Changes from 1 commit
b5a9c6b
6fa639e
ecf98b9
c5dd83f
bb44214
98fceb3
eda0e64
c7790ab
6e9b31a
3b2ab93
f8af30f
7266580
f24b70b
8bd8ee2
56f0913
90d41a0
c470a12
d030062
ad5d46b
d5031b0
28dacc8
f48527f
bd45f19
dee8f55
3574541
cf04f1a
89e10d7
e54d2d4
7d79dee
b61c5c7
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.
I think the return type here is incorrect: the optional dict should be Optional[str]. (Presumably we json-decode the string elsewhere when needed.)
Xref #12485 (comment)
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 might be a silly question, but why do we do it this way, instead of keeping track of the point we've processed up to?
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.
Err, we could. I don't think I had much reasoning beyond not having to worry about extra tables or handling the duplicate stream IDs.
I've also been thinking about how you'd distribute this across multiple workers, but I'm not sure this helps that or not 🤷
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.
mmmhmm. Generally I prefer to keep our tables append-only where possible (it saves a world of caching problems later on), but fair enough.