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

Merged
Jade merged 5 commits from oddlid/continuwuity:delete_media into main 2025-10-27 12:31:25 +00:00
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
fix(#1134): Update docs and implementation of admin media delete-past-remote-media
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Failing after 2m33s
Release Docker Image / Build linux-arm64 (release) (pull_request) Successful in 7m50s
Release Docker Image / Build linux-amd64 (release) (pull_request) Successful in 8m24s
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Successful in 5s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 16m30s
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Successful in 14m10s
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Successful in 14m10s
Release Docker Image / Create Max-Perf Manifest (pull_request) Successful in 4s
a7a4292c0e
- Adding verbatim_doc_comment to get better help text output
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 1m28s
Release Docker Image / Build linux-amd64 (release) (pull_request) Successful in 5m22s
Release Docker Image / Build linux-arm64 (release) (pull_request) Successful in 5m23s
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Successful in 4s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 8m26s
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Successful in 12m58s
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Successful in 13m13s
Release Docker Image / Create Max-Perf Manifest (pull_request) Successful in 4s
b2a98e5214
- Added extra blank lines in doc comments to get the rendered docs more like
  I want them.
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 1m37s
Release Docker Image / Build linux-amd64 (release) (pull_request) Successful in 6m44s
Release Docker Image / Build linux-arm64 (release) (pull_request) Successful in 6m49s
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Successful in 5s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 14m18s
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Successful in 13m6s
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Successful in 13m18s
Release Docker Image / Create Max-Perf Manifest (pull_request) Successful in 13s
5091d691fe
- Remove blank lines in doc comments, as the examples were not included
  in the admin room help text
oddlid force-pushed delete_media from 5091d691fe
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m37s
Release Docker Image / Build linux-amd64 (release) (pull_request) Successful in 6m44s
Release Docker Image / Build linux-arm64 (release) (pull_request) Successful in 6m49s
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Successful in 5s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 14m18s
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Successful in 13m6s
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Successful in 13m18s
Release Docker Image / Create Max-Perf Manifest (pull_request) Successful in 13s
to b2a98e5214
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m28s
Release Docker Image / Build linux-amd64 (release) (pull_request) Successful in 5m22s
Release Docker Image / Build linux-arm64 (release) (pull_request) Successful in 5m23s
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Successful in 4s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 8m26s
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Successful in 12m58s
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Successful in 13m13s
Release Docker Image / Create Max-Perf Manifest (pull_request) Successful in 4s
2025-10-24 11:43:15 +00:00
Compare
Jade merged commit cb7875e479 into main 2025-10-27 12:31:25 +00:00
oddlid deleted branch delete_media 2025-10-29 08:43:55 +00:00
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.