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
Add order_by
to list users' media admin API
#8978
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f6b4954
Add `order_by` to list users' media admin API
dklimpel 23a731e
update test - mismatch SQlite and PostreSQL
dklimpel e0b5345
Change default sort order to prevent breaking change
dklimpel 278fe01
Merge remote-tracking branch 'synapse/develop' into order_media
dklimpel c8f1904
Add performance warning
dklimpel f0e8c8a
Merge remote-tracking branch 'synapse/develop' into order_media
dklimpel 84ab2b6
Apply suggestions from code review - Part 1
dklimpel ef3a96f
Apply suggestions from code review - Part 2
dklimpel 5e813f5
Merge remote-tracking branch 'synapse/develop' into order_media
dklimpel cd85a9d
Add missing `store` to UserMediaRestTestCase
dklimpel 222af2f
Apply suggestions from code review - Part 1
dklimpel 179dc3c
Apply suggestions from code review - Part 2
dklimpel 50e6c67
Update tests/rest/admin/test_user.py
dklimpel 15947d6
re-order test
dklimpel 79a5ee5
Merge remote-tracking branch 'synapse/develop' into order_media
dklimpel fc6c345
fix wrong merge and code style
dklimpel dd69590
fix test
dklimpel 48ed7f8
Merge remote-tracking branch 'synapse/develop' into order_media
dklimpel 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 `order_by` to the admin API `GET /_synapse/admin/v1/users/<user_id>/media`. Contributed by @dklimpel. |
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
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.
Isn't this identical to providing the
default
key below?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 is for the special case of backward compatibility of this API. In case of no request parameter there is a special value of default: direction is
b
. In a normal case the direction isf
.It was a request: #8978 (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.
Ah, right! I missed that the direction was opposite the default. Good catch!