-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spec implicit filter event limit #1463
Conversation
Signed-off-by: Stuart Mumford <[email protected]>
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.
@Cadair thanks for picking this up!
@@ -14,7 +14,7 @@ | |||
title: EventFilter | |||
properties: | |||
limit: | |||
description: The maximum number of events to return. | |||
description: The maximum number of events to return. If not specified defaults to 10. |
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'm not entirely sure we should mandate this, or that we can mandate it, without going through the MSC process: it may well be that non-synapse implementations use a different default.
I think what we need to say instead is that if it's not specified, servers should use an implementation-specific default.
The limit
param on GET /threads
has sensible wording here.
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.
Ok, that makes more sense, I wasn't sure I had understood the original issue.
Also: please could you take a look at https://github.com/matrix-org/matrix-spec/blob/main/CONTRIBUTING.rst, particularly with respect to the need for a changelog file? |
Signed-off-by: Stuart Mumford <[email protected]>
Signed-off-by: Stuart Mumford <[email protected]>
ee32fd2
to
acba8e9
Compare
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.
Great, thank you!
Signed-off-by: Stuart Mumford <[email protected]>
This is an attempt to address #200
I think I am understanding the issue correctly.
I took the default out of synapse I haven't looked in any other implementations to see if they also use the default of 10.Preview: https://pr1463--matrix-spec-previews.netlify.app