[tasks] Clean up fields and simplify form

This commit is contained in:
2026-08-23 17:28:30 -04:00
parent ab3079b0ea
commit 1206dee290
12 changed files with 427 additions and 125 deletions

View File

@ -1,5 +1,30 @@
#+title: CHANGELOG
* Version 65.6 [1/1]
** DONE [#B] TODOIST_* variable names flagged as TODOs (false positives) :tasks:metadata:cleanup:
:PROPERTIES:
:ID: b2fd3053-ce26-4cdb-bf37-578387fef6c7
:END:
*** Description
Task logdata now uses generic, source-agnostic field names instead of
per-source prefixed keys. `TaskLogData` gained `source_id`, `project_id`,
`state` and `raw_data` (the full remaining source payload kept for future
reference, matching the music track `raw_data` convention); the old `orgmode_*`
and `todoist_*` keys are gone. The todoist and emacs scrobblers and webhooks
normalize into the generic fields, and all `log__orgmode_id` / `log__todoist_id`
lookups became `log__source_id`. `Task.source_url_for_user()` now reads
`source_id` (fixing the `todist_id` typo and the never-matching log `source`
check). New `convert_orgmode_task_log_to_generic` /
`convert_todoist_task_log_to_generic` helpers (wired into the
`convert_task_log_data` management command) migrate existing scrobble logs.
The scrobble "Edit Log" form no longer renders the read-only fields (labels,
source_id, project_id, state, raw_data) as disabled inputs — they are excluded
from the form and preserved on save — and the form now defaults to being
toggled open. Task labels render as read-only badges in the detail view
instead.
* Version 65.5 [2/2]
** DONE [#A] Fix database backup bug where running in celery task fails :bug:backups:celery:tasks:
:PROPERTIES:
@ -34,35 +59,6 @@ The gitea action, Drone pipeline, Makefile deploy target, and the rc.d script
itself are updated so every deploy restarts the three celery workers plus
celerybeat.
* Version 65.4 [2/2]
** DONE [#B] Rename the default,charts celery worker to vrobbler_celery_charts :celery:deploy:
:PROPERTIES:
:ID: 92686951-8c87-4eae-8c48-1bed87567e93
:END:
*** Description
The FreeBSD rc.d worker that consumes the `default,charts` queues is renamed
from `vrobbler_celery` to `vrobbler_celery_charts`, matching the naming of its
companion workers (`vrobbler_celery_priority`, `vrobbler_celery_background`).
The gitea action, Drone pipeline, Makefile deploy target, and the rc.d script
itself are updated so every deploy restarts the three celery workers plus
celerybeat.
** DONE [#A] Fix database backup bug where running in celery task fails :bug:backups:celery:tasks:
:PROPERTIES:
:ID: 4117482f-4774-49b8-93b2-5b97adb194bd
:END:
*** Description
The `backup_database` celery task failed with `No such file or directory
'pg_dump'` even though the manual management command worked. FreeBSD rc.d
celery workers run under daemon(8) with a minimal PATH that omits
`/usr/local/bin`. The task now resolves `pg_dump` via `shutil.which()`,
falling back to the common PostgreSQL install locations, instead of relying
on the inherited PATH.
* Version 65.3 [1/1]
** DONE [#B] Trail scrobbles without names should try to use trial heads loc :trails:metadata:
:PROPERTIES: