mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 07:42:23 +00:00
fix(backup): carry the import ledger, and the keys of deleted imports
The backup carried neither the import ledger nor the tombstones of deleted documents, so after a restore onto a fresh instance a token importer stored every imported document the person had deleted on purpose again. The document filing section now carries documentImportKeys: the ledger's rows plus the own and alias keys of the documents waiting in Recently deleted, which still do not travel as documents. The restore writes them back, minus any key a restored live document holds, and counts them in the restore summary and the preview. DocumentImportKey moves from the excluded models to the two-ended ones, and the round trip, the column audit and the parity goldens carry a ledger row.
This commit is contained in:
1 parent
988af10a34
commit
205d8f257c
25 files changed
+906
-348
No files matched your search
@@ -44015,6 +44015,34 @@ components:
|
||||
- createdAt
|
||||
- updatedAt
|
||||
additionalProperties: {}
|
||||
documentImportKeys:
|
||||
default: []
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
sourceSystem:
|
||||
type: string
|
||||
enum:
|
||||
- PAPERLESS
|
||||
- PAPRA
|
||||
- OTHER
|
||||
sourceId:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 128
|
||||
sourceInstance:
|
||||
anyOf:
|
||||
- type: string
|
||||
maxLength: 512
|
||||
- type: "null"
|
||||
createdAt:
|
||||
type: string
|
||||
minLength: 1
|
||||
required:
|
||||
- sourceSystem
|
||||
- sourceId
|
||||
additionalProperties: {}
|
||||
nutrientDays:
|
||||
default: []
|
||||
type: array
|
||||
@@ -46536,6 +46564,7 @@ components:
|
||||
- documents
|
||||
- documentConditionLinks
|
||||
- extractedFacts
|
||||
- documentImportKeys
|
||||
- nutrientDays
|
||||
- healthProfile
|
||||
- healthProfileFacts
|
||||
|
||||
Reference in new issue
Block a user