mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-25 18:40:06 -04:00
|
Some checks are pending
Backend Tests / api-tests (core) (push) Waiting to run
Backend Tests / api-tests (files) (push) Waiting to run
Backend Tests / api-tests (media) (push) Waiting to run
Backend Tests / api-tests (rest) (push) Waiting to run
Backend Tests / api-contract-tests (push) Waiting to run
Backend Tests / api-migrations-and-start (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Controller Tests / controller-tests (push) Waiting to run
Cypress Tests / cypress-component-tests (push) Waiting to run
Cypress Tests / cypress-e2e-tests (push) Waiting to run
Jest Tests / jest-tests (push) Waiting to run
* File downloads: return plain values from upsert_file Every file download failed after the file was saved, with DetachedInstanceError reading `fg.location`. `upsert_file` returned a FileGroup from a session it had committed, and the caller read it after the session was gone. SQLAlchemy 1.3 kept that session alive in a reference cycle until the next garbage collection, so the read worked by accident; 2.0 frees it as the `with` block ends. Failed downloads retry, re-downloading their files. `upsert_file` now returns `UpsertedFile(file_group_id, location)`, read inside its session. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Archive uploads: return plain values from singlefile_to_archive Same failure as upsert_file: `singlefile_to_archive` returned an Archive from a committed session, and the upload handler read `archive.file_group.title/url` and `archive.location` after the session was freed, so every SingleFile upload raised DetachedInstanceError after the Archive was saved. It now returns `UploadedArchive(file_group_id, name, url, location)`, read inside its session. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| archive | ||
| docs | ||
| flasher | ||
| inventory | ||
| map | ||
| repos | ||
| videos | ||
| zim | ||
| __init__.py | ||