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
lazyload aware /messages #3589
Merged
Merged
lazyload aware /messages #3589
Changes from 51 commits
Commits
Show all changes
73 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 7362e6c
make /context lazyload & filter aware
ara4n cd28d2f
speed up /members and add at= and membership params
ara4n a17f0b6
make it work
ara4n 9ba6ef2
Merge branch 'matthew/lazy_load_apis' into matthew/members_at
ara4n c6117fa
make it work
ara4n 8f1585d
make filtering work
ara4n 42308c0
initial cut at a room summary API
ara4n 0beeecf
remove debug log
ara4n 63ce31b
namespace the summary fields correctly
ara4n c8cbede
fix key typo
bwindels f9c3c26
Merge branch 'matthew/filter_members' into matthew/remove_redundant_l…
ara4n c2870ab
Merge branch 'matthew/remove_redundant_lazy_members' into matthew/laz…
ara4n ffb7a4c
Merge branch 'matthew/lazy_load_apis' into matthew/members_at
ara4n c1c6ff1
Merge branch 'matthew/members_at' into matthew/room_summary
ara4n 7d99b0e
changelog
ara4n cd27a77
changelog
ara4n 4018a6d
changelog
ara4n c238a88
changelog
ara4n e1daddd
first cut at lazyload aware /messages
ara4n dd2c0e1
make it work
ara4n 40e61d5
changelog
ara4n 1ba3683
return the correct counts & self-exclude from heros
ara4n f129390
spell heroes correctly
ara4n bfbebec
Merge branch 'matthew/room_summary' into matthew/lazy_load_messages_api
ara4n 4c2edd1
remember to filter state events
ara4n e61071a
fix heroes definition to match MSC
ara4n d32e5f8
Merge branch 'matthew/filter_members' into matthew/remove_redundant_l…
ara4n 238f750
deduplicating redundant members via event_id rather than mxid
ara4n 2a79e1a
Merge branch 'matthew/remove_redundant_lazy_members' into matthew/laz…
ara4n 48f3e43
Merge branch 'matthew/lazy_load_apis' into matthew/members_at
ara4n 7cc81ed
Merge branch 'matthew/members_at' into matthew/room_summary
ara4n 96d1f3c
Merge branch 'matthew/room_summary' into matthew/lazy_load_messages_api
ara4n 08af91d
fix merge fail
ara4n e76254b
Merge branch 'matthew/members_at' into matthew/room_summary
ara4n 4e33d06
Merge branch 'matthew/room_summary' into matthew/lazy_load_messages_api
ara4n 58529df
Merge branch 'matthew/room_summary' of github.com:matrix-org/synapse …
erikjohnston 9637ae4
Merge branch 'matthew/lazy_load_messages_api' of git+ssh://github.com…
ara4n d5b1842
fix missing import
ara4n e952368
incorporate review
ara4n 423c512
add null check for state
ara4n 2d9c062
Merge branch 'develop' into matthew/members_at
ara4n eebee08
convert /members?at= to take a stream token
ara4n 5df2c36
Merge branch 'develop' into matthew/room_summary
ara4n d0c0d72
incorporate all the review feedback
ara4n b327e07
fix use of get_recent_event_ids_for_room
ara4n c6fd400
Merge branch 'matthew/room_summary' into matthew/lazy_load_messages_api
ara4n 9e4acb7
Merge branch 'matthew/members_at' into matthew/room_summary
ara4n e235005
add cap neg to /versions for LL
ara4n db333cc
fix english
ara4n 32bf4fa
return early rather than big if blocks
ara4n 859ad35
incorporate PR review
ara4n ab31a44
Merge branch 'matthew/members_at' into matthew/lazy_load_messages_api
ara4n dd4498f
Merge branch 'develop' into matthew/members_at
ara4n 53cce23
Merge branch 'matthew/members_at' into matthew/lazy_load_messages_api
ara4n 65d4521
don't remove old versions from /versions for now
ara4n fe9ed88
Merge branch 'matthew/room_summary' into matthew/lazy_load_messages_api
ara4n 217d5dd
Merge branch 'develop' into matthew/members_at
ara4n 8442478
Merge branch 'matthew/members_at' into matthew/room_summary
ara4n 0cbe5a2
Merge branch 'matthew/room_summary' into matthew/lazy_load_messages_api
ara4n f5189b9
remove incorrectly reintroduced method
richvdh 0d5770d
cleanups
richvdh c2d9c96
Merge branch 'matthew/members_at' into matthew/room_summary
richvdh dc085c0
Merge remote-tracking branch 'origin/develop' into matthew/room_summary
richvdh 7306074
remove spurious changelogs
richvdh c3cdc21
factor out get_lazy_loaded_members_cache
ara4n 33fdfa7
Merge branch 'matthew/room_summary' into matthew/lazy_load_messages_api
ara4n 62d8ce7
Merge branch 'develop' into matthew/lazy_load_messages_api
richvdh 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
make the /context API filter & lazy-load aware 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
speed up /members API and add `at` and `membership` params 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
implement `summary` block in /sync response as per MSC688 |
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 lazy-loading support to /messages 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,11 +27,17 @@ class VersionsRestServlet(RestServlet): | |
def on_GET(self, request): | ||
return (200, { | ||
"versions": [ | ||
"r0.0.1", | ||
"r0.1.0", | ||
"r0.2.0", | ||
# we don't need to include the minor values any more, as we've defined | ||
# X.Y.Z to be backwards-compatible with X.(Y-1).* where Y>1 | ||
# "r0.0.1", | ||
# "r0.1.0", | ||
# "r0.2.0", | ||
"r0.3.0", | ||
] | ||
], | ||
# as per MSC1497: | ||
"unstable_features": { | ||
"m.lazy_load_members": True, | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. trailing comma would be nice... |
||
}) | ||
|
||
|
||
|
Oops, something went wrong.
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.
Was this the conclusion of that conversation? I thought for r0 we were saying Y was effectively the major version.
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 was saying this, but on closer inspection it turned out we’d never defined it as such.
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 this needs a bit more discussion, which should probably happen outside of the comment box on github.
r0.3.0 isn't compatible with r0.2.0 (push rules changed, some APIs removed, event formats changed) and if I recall correctly r0.3.0 was released intentionally as r0 given the constraints of the API.
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.
agreed. @richvdh, wdyt?
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.
yes I agree this needs more discussion :/.
For example, presumably the change to push rules strictly means that we don't support < r0.2.0 any more.
My inclination would be to avoid poking at this hornet's nest for 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.
have unpoked.