-
Notifications
You must be signed in to change notification settings - Fork 234
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
Add some useful endpoints to Admin API #17948
Merged
MadLittleMods
merged 47 commits into
element-hq:develop
from
H-Shay:shay/admin_improvements
Dec 16, 2024
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
a6ae7b7
add functionality to fetch event reports against a specific user
H-Shay bc8930d
tests
H-Shay 106cb4f
add admin apis to get invite count and joined room count for last 24h…
H-Shay 3c6e281
docs
H-Shay 81f8ce8
newsfragment
H-Shay d7a6a8c
fix postgres quotes situation
H-Shay 408e1de
should be users
H-Shay 0a1f5af
expand event reports API to filter for the sender of a reported event
H-Shay 121f7d4
extend admin api to get joined rooms to filter via optional timestamp
H-Shay cda34bb
misc cleanup + add an index on events.received_ts
H-Shay e2427fd
clarify timestamp
H-Shay dbd120e
revise docs
H-Shay 4af0387
requested changes
H-Shay 04a3ab7
update tests to reflect changes
H-Shay a4d2075
Merge branch 'develop' into shay/admin_improvements
H-Shay 69029a9
docs update
H-Shay 40da1b4
docstring update
H-Shay 574e5c4
clean up quesries
H-Shay 52d2905
use set from beginning
H-Shay 227d312
Merge branch 'shay/admin_improvements' of https://github.com/H-Shay/h…
H-Shay 056d49d
requested changes
H-Shay 5140082
update changelog
H-Shay b651ed8
doc rewording
H-Shay dc15f58
fix zero check
H-Shay 9e7453f
clean up querys/docstrings
H-Shay af2b99f
use correct delta
H-Shay 867669a
add test descriptions and separate test concerns
H-Shay d754849
lint
H-Shay 347e4f7
rescind USING shorthand as it made postgres unhappy
H-Shay a5762b3
lint
H-Shay b4ec5c2
clarify terms
H-Shay 2641961
rework queries
H-Shay e62a1d9
clean up tests
H-Shay 8f73f15
fix tests
H-Shay d5ad780
use new endpoint
H-Shay b3ff802
remove unused constants
H-Shay 0132dd1
Merge branch 'develop' into shay/admin_improvements
H-Shay 312dbf1
match ts on > rather than >=
H-Shay 197ed96
clean up tests
H-Shay 6b2c3e3
Merge branch 'shay/admin_improvements' of https://github.com/H-Shay/h…
H-Shay fc9e4ea
update docs
H-Shay e9662b9
Merge branch 'develop' into shay/admin_improvements
H-Shay 9b4bad5
match on `>=`
H-Shay b8f7b90
frozenset + test cleanup
H-Shay bdfe1b0
Merge branch 'shay/admin_improvements' of https://github.com/H-Shay/h…
H-Shay 288a21e
Merge branch 'develop' into shay/admin_improvements
H-Shay 092e5db
fix changelog wording
H-Shay 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,3 @@ | ||
Add endpoints to Admin API to fetch the number of invites the provided user has sent after a given timestamp, | ||
fetch the number of rooms the provided user has joined after a given timestamp, and get report IDs of event | ||
reports against a provided user (ie where the user was the sender of the reported event). | ||
H-Shay marked this conversation as resolved.
Show resolved
Hide resolved
|
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
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.
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.
Sorry that the review has been a bit stochastic and I wasn't able to pick up on all of these pieces in a single blast.
You might also want to try these queries on
matrix.org
to see if they run fast enough for you. Having to match onsender
without an index might be more detrimental than we expect.