This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Deduplicate redundant lazy-loaded members #3331
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
7b7fd27
untested attempt at deduplicating lazy-loaded members
ara4n c341d81
Merge branch 'develop' into matthew/remove_redundant_lazy_members
ara4n f7bd5da
add include_redundant_members filter option & make it work
ara4n 589e5aa
merge and apply isort
ara4n 8e66dd1
merge in #2970
ara4n a08b37b
fix bad merge
ara4n f9c3c26
Merge branch 'matthew/filter_members' into matthew/remove_redundant_l…
ara4n 7d99b0e
changelog
ara4n d32e5f8
Merge branch 'matthew/filter_members' into matthew/remove_redundant_l…
ara4n 238f750
deduplicating redundant members via event_id rather than mxid
ara4n 03d3ce2
remove stale todo
ara4n c8825b0
add tests for _get_some_state_from_cache
ara4n 575a368
incorporate more review.
ara4n 0e3257c
Merge branch 'matthew/filter_members' into matthew/remove_redundant_l…
ara4n de37ce6
Merge branch 'develop' into matthew/remove_redundant_lazy_members
ara4n 6b17981
incorporate review
ara4n bbb70de
Merge branch 'develop' into matthew/remove_redundant_lazy_members
ara4n File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add support for the include_redundant_members filter param as per MSC1227 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
as per https://docs.google.com/document/d/11yn-mAkYll10RJpN0mkYEVqraTbU3U4eQx9MNrzqX1U/edit?disco=AAAACEx0noo, we should consider validating the value passed by the client - presumably in the constructor rather than here.
(this applies to lazy_load_members too, of course; I just forgot it there.)
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've fixed up the proposal doc to explicitly demand {true|false} there. This is however being strictly validated anyway via the JSON schema validation over at: https://github.com/matrix-org/synapse/pull/3331/files#diff-ed81002a2d319904392e1a6f871eb2edR121
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.
oooh I hadn't spotted that. well, yay!