feat(csv-import): Implement SAVEPOINT handling for vitals baseline import
Deploy Development / deploy (push) Successful in 55s
Build Test / pytest-backend (push) Failing after 1s
Build Test / lint-backend (push) Successful in 1s
Build Test / build-frontend (push) Successful in 17s

- Updated the CSV import logic to include SAVEPOINT management, allowing for better error handling during the vitals baseline import process.
- Enhanced the SQL migration script to drop existing CHECK constraints related to the 'source' field, ensuring compatibility with the new universal CSV import.
- Incremented DB_SCHEMA_VERSION to "20260409c" to reflect these changes and improve the import process reliability.
This commit is contained in:
Lars committed 2026-04-10 16:11:08 +02:00
1 parent e60976e1cc
commit 5a0c71dd90
5 files changed
+52 -4

No files matched your search

+1
View File
@@ -477,6 +477,7 @@ async def csv_import_execute(
m,
)
except Exception as exec_err:
logger.exception("Universal-CSV-Import fehlgeschlagen: %s", exec_err)
cur.execute("ROLLBACK TO SAVEPOINT csv_import_exec")
cur.execute(
"""