fix(#1134): Update docs and implementation of admin media delete-past-remote-media #1136

Open
oddlid wants to merge 3 commits from oddlid/continuwuity:delete_media into main
Contributor

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.

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.
fix(#1134): Update docs and implementation of admin media delete-past-remote-media
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m56s
Release Docker Image / Build linux-amd64 (release) (pull_request) Successful in 10m1s
Release Docker Image / Build linux-arm64 (release) (pull_request) Successful in 10m5s
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Successful in 10s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 19m23s
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Successful in 14m24s
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Successful in 14m28s
Release Docker Image / Create Max-Perf Manifest (pull_request) Successful in 4s
5f6cd3f34b
Member

Note that there's a bigger nix refactor going on in #1096 which is going to be merged soon

Note that there's a bigger nix refactor going on in https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1096 which is going to be merged soon
fix(#1134): Update docs and implementation of admin media delete-past-remote-media
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m42s
Release Docker Image / Build linux-amd64 (release) (pull_request) Successful in 7m37s
Release Docker Image / Build linux-arm64 (release) (pull_request) Successful in 7m43s
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Successful in 5s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 9m39s
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Successful in 12m59s
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Successful in 12m59s
Release Docker Image / Create Max-Perf Manifest (pull_request) Successful in 5s
d47d8adc6d
- Removed default.nix from PR based on comment from Aviac
Author
Contributor

@Aviac wrote in #1136 (comment):

Note that there's a bigger nix refactor going on in #1096 which is going to be merged soon

I've now removed the nix file from the commit

@Aviac wrote in https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1136#issuecomment-21229: > Note that there's a bigger nix refactor going on in #1096 which is going to be merged soon I've now removed the nix file from the commit
Owner

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 something

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 something
Owner

If it makes it clearer, examples might be good

If it makes it clearer, examples might be good
fix(#1134): Update docs and implementation of admin media delete-past-remote-media
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m49s
Release Docker Image / Build linux-amd64 (release) (pull_request) Successful in 7m47s
Release Docker Image / Build linux-arm64 (release) (pull_request) Successful in 7m50s
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Successful in 10s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 15m54s
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Successful in 14m59s
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Successful in 15m0s
Release Docker Image / Create Max-Perf Manifest (pull_request) Successful in 5s
6794e9563f
- Updated doc comments and regenerated admin command docs
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m49s
Required
Details
Release Docker Image / Build linux-amd64 (release) (pull_request) Successful in 7m47s
Release Docker Image / Build linux-arm64 (release) (pull_request) Successful in 7m50s
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Successful in 10s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 15m54s
Required
Details
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Successful in 14m59s
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Successful in 15m0s
Release Docker Image / Create Max-Perf Manifest (pull_request) Successful in 5s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u delete_media:oddlid-delete_media
git switch oddlid-delete_media
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
continuwuation/continuwuity!1136
No description provided.