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.
Avoid unnecessary work in the spaces summary. #10085
Avoid unnecessary work in the spaces summary. #10085
Changes from 4 commits
352f1fb
3357a6a
8103061
e8f2995
be7567d
c6d84ce
b9b659b
e948632
a173fe5
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 don't really follow this logic. Why do we only add the event to the pending list for the child room?
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.
The thought process was that we only want to send the event in the case of both the parent and child room being accessible to the requester.
I think the assumption here is that if the parent room isn't in
processed_rooms
something terrible has happened? There are two sources of data we're iterating over:events
-m.space.child
events from the current room.room_pending_events
-m.space.child
events which were previously found to be pointing to the current room, i.e. the child room is the current room and the parent room is a previously processed room.I'm now having trouble convincing myself that parents must be processed before children and I think that assumption might be bogus actually.