Browse and delete polls from a numbered list in the polls menu
CI / Deploy / PHP 8.5 (push) Successful in 1m7s
CI / Deploy / PHP 8.4 (push) Successful in 1m12s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped

Paged list with pick by number (open) and "d 1,3" to delete several at
once after one confirmation. List query and table moved into the shared
base command.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-16 13:35:38 +01:00
1 parent 6e8fef022b
commit 7b83cf2f2c
6 files changed
+202 -39

No files matched your search

+2 -1
View File
@@ -13,7 +13,8 @@ Aufräumen und Erinnerungen, CI/CD, Release-Pakete, Container.
Aufräumen per Cron: `bin/cake polls cleanup` (erst `remind`, dann idempotent löschen über `PollsTable::delete()` samt
Folien/Bildern, danach `images_cleanup`; `--dry-run`; Cron-Einrichtung für Server und Docker steht in [deployment.md](deployment.md) unter
„Cronjob einrichten“, im Container läuft kein cron). `last_admin_access` fließt nicht mehr ein. `polls show --link`
ist die einzige Stelle, die den Admin-Link ausgibt (nie in `list`). Das Menü `bin/cake polls` (`PollsMenuCommand`) ruft nur diese Befehle per `executeCommand()` auf; jede Abfrage hat eine
ist die einzige Stelle, die den Admin-Link ausgibt (nie in `list`). Das Menü `bin/cake polls` (`PollsMenuCommand`) ruft nur diese Befehle per `executeCommand()` auf; die Liste ist nummeriert und seitenweise (`PAGE_SIZE`; `<Nr>` öffnet,
`d 1,3` löscht mehrere nach einer Rückfrage, `n`/`p` blättern, Tastatur-Pfeile gibt es bewusst nicht: nicht portabel, v. a. unter Windows); jede Abfrage hat eine
Vorgabe (`0`/leer/`n`), damit geschlossene Eingabe es beendet statt zu schleifen; Löschen/Aufräumen erst nach Vorschau (`--dry-run`) und Rückfrage.
Tests: `PollsCommandsTest.php` (leert vorher alle Umfragen).