fix(#1134): Update docs and implementation of admin media delete-past-remote-media
#1136
No reviewers
Labels
No labels
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status/Blocked
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
To-Merge
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!1136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "oddlid/continuwuity:delete_media"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For default.nix, there's really only 1 change, which is the commenting of line 214 (in the updated version), and a comment of why above. The rest of the changes in that file is just the nix formatters work. If this is undesirable, the whole file can be be excluded from the commit if desirable.
Otherwise, please have a look and see if you think these changes makes both the intent and implementation more clear.
Note that the logic for selecting files before/after is now reversed, as I believe it was not correct in the previous implementation. I've added a unit test to make that clear.
admin media delete-past-remote-media
Note that there's a bigger nix refactor going on in #1096 which is going to be merged soon
admin media delete-past-remote-media
@Aviac wrote in #1136 (comment):
I've now removed the nix file from the commit
Deletes all remote (and optionally local) media created (before|after) [duration] ago?
anyway, you need to regenerate the admin command docs, which was
cargo xtask admin md
or somethingIf it makes it clearer, examples might be good
admin media delete-past-remote-media
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.