[backups] Fix version bug with webdav

This commit is contained in:
2026-08-23 17:57:25 -04:00
parent 1206dee290
commit c9090403e4
4 changed files with 33 additions and 28 deletions

View File

@ -18,7 +18,7 @@ tasks, Todoist tasks, web pages I've read and trails I've hiked has turned out
to be sometimes cathartic and sometimes functional as I try to remember when I
did a thing.
* Backlog [0/34] :vrobbler:project:personal:
* Backlog [2/35] :vrobbler:project:personal:
** TODO [#C] Configure IMAP folder/start in user profile :imap:settings:
*** Description
@ -611,6 +611,17 @@ The Edit log form should have from top to bottom:
- People (which should be similar to the Bird widget on BirdLocation and allow setting per user score, win true/false, rank, new true/false, seat_ordrer)
- Expansion ids (which should a multi-select widget of expansions for this game)
- Location (which should be a drop down of BoardGameLocations for this user)
** DONE [#A] Fix recursive bug in backup script :backups:bug:
:PROPERTIES:
:ID: e986d35e-fc23-5d31-9d2a-0a95da4748a2
:END:
#+begin_src python
ERROR vrobbler.apps.scrobbles.tasks:808 backup_database backup_database: webdav upload failed: Client.mkdir() got an unexpected keyword argument 'recursive'
WARNING vrobbler.apps.scrobbles.tasks:537 _cleanup_failed_backup backup_database: removed incomplete backup /var/backups/vrobbler-backup-2026_08_23.sql.gz
ERROR vrobbler.apps.scrobbles.tasks:827 backup_database backup_database failed: Client.mkdir() got an unexpected keyword argument 'recursive'
DEBUG urllib3.connectionpool:2075 _new_conn Starting new HTTPS connection (1): ntfy.unbl.ink:443
#+end_src
** DONE [#B] TODOIST_* variable names flagged as TODOs (false positives) :tasks:metadata:cleanup:
:PROPERTIES:
:ID: b2fd3053-ce26-4cdb-bf37-578387fef6c7
@ -644,4 +655,23 @@ the detail view instead.
- ~vrobbler/apps/scrobbles/constants.py~ (line 74) -- =TODOIST_TASK_URL=
- These are variable/constant names for the Todoist integration, not actual
TODOs. No action needed, but worth noting they show up in searches.
*** Agent 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.