dorfteich/apps/api/src/import-export
Claude Fable 5 0bc36aa58c
Some checks failed
CI / Lint, typecheck, test (pull_request) Successful in 5m1s
CI / Build container images (pull_request) Successful in 2m48s
CI / Auth e2e pack (pull_request) Failing after 3m12s
CI / Import/export fidelity gate (pull_request) Has been skipped
#194: orphan-file sweep, drop the unused Attachment.deletedAt
Nightly sweep with two directions: attachments still unclaimed (pageId
null) after a 24 h grace period - claimed by no collab persist, page
upload, or import - are reclaimed (row, file, quota released); files on
the uploads volume without a database row (drift after a crashed
upload) are removed once older than the grace period. The grace period
protects the paste-then-insert window.

Deliberate deviation from the issue's content-reference idea, documented
in schema comment and operations.md: claimed attachments whose page
content no longer embeds them are NOT auto-deleted. The page attachments
panel lists claimed files as user-managed objects (inserting into the
document is optional there), so 'not embedded' is not 'unused' - an
auto-delete would destroy panel assets. Humans clean those up in the
panel or the pond file manager, which flags orphans already.

Attachment.deletedAt is removed by migration - deletion is hard
everywhere (sweep, purge, manual), there is no soft-delete state; the
never-true deletedAt:null filters in files/export queries went with it.

Refs #194

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0168Ph5uBmHm8X28CSVpbpnJ
2026-07-30 13:19:58 +02:00
..
conversion-job.e2e.db.test.ts Add conversion job queue and pandoc sidecar integration (#62) 2026-07-10 04:06:27 +02:00
conversion-job.service.ts Obsidian vault import: endpoint, job orchestration, rollback (#117) 2026-07-14 17:13:11 +02:00
conversion-worker.service.ts Nextcloud backup target: admin-configured, manual + scheduled uploads, in-app restore (#103) 2026-07-12 10:39:18 +02:00
data-export.constants.ts Add self-service GDPR data export (#68) 2026-07-10 13:01:51 +02:00
data-export.controller.ts Add self-service GDPR data export (#68) 2026-07-10 13:01:51 +02:00
data-export.service.db.test.ts Add self-service GDPR data export (#68) 2026-07-10 13:01:51 +02:00
data-export.service.ts Add self-service GDPR data export (#68) 2026-07-10 13:01:51 +02:00
export-markdown.test.ts Add pond ZIP + per-page docx/odt export (#65) 2026-07-10 10:31:19 +02:00
export-markdown.ts Add pond ZIP + per-page docx/odt export (#65) 2026-07-10 10:31:19 +02:00
export.controller.ts Add pond ZIP + per-page docx/odt export (#65) 2026-07-10 10:31:19 +02:00
export.fidelity.test.ts Add import/export fidelity gate to CI (#69) 2026-07-10 13:59:10 +02:00
export.service.db.test.ts Degrade plugin content gracefully in HTML, PDF, and office exports (#79) 2026-07-11 14:13:09 +02:00
export.service.ts #194: orphan-file sweep, drop the unused Attachment.deletedAt 2026-07-30 13:19:58 +02:00
gotenberg.renderer.ts Add PDF export via Gotenberg (#67) 2026-07-10 12:11:12 +02:00
import-export.module.ts Obsidian vault import: endpoint, job orchestration, rollback (#117) 2026-07-14 17:13:11 +02:00
import-vault.e2e.db.test.ts Obsidian vault import: endpoint, job orchestration, rollback (#117) 2026-07-14 17:13:11 +02:00
import.constants.ts Import .docx and .odt documents as new pages (#63) 2026-07-10 07:34:43 +02:00
import.controller.ts Obsidian vault import: endpoint, job orchestration, rollback (#117) 2026-07-14 17:13:11 +02:00
import.fixtures.test.ts Import .docx and .odt documents as new pages (#63) 2026-07-10 07:34:43 +02:00
import.service.db.test.ts Add document import UI in the sidebar (#64) 2026-07-10 09:38:31 +02:00
import.service.ts Obsidian vault import: endpoint, job orchestration, rollback (#117) 2026-07-14 17:13:11 +02:00
jobs.controller.ts Add conversion job queue and pandoc sidecar integration (#62) 2026-07-10 04:06:27 +02:00
obsidian-vault.test.ts Vault import: decode ZIP names as UTF-8 and NFC-normalize them 2026-07-15 13:24:58 +02:00
obsidian-vault.ts Vault import: decode ZIP names as UTF-8 and NFC-normalize them 2026-07-15 13:24:58 +02:00
pandoc.converter.test.ts Add conversion job queue and pandoc sidecar integration (#62) 2026-07-10 04:06:27 +02:00
pandoc.converter.ts Obsidian vault import: endpoint, job orchestration, rollback (#117) 2026-07-14 17:13:11 +02:00
pdf-html.ts Degrade plugin content gracefully in HTML, PDF, and office exports (#79) 2026-07-11 14:13:09 +02:00
pdf.fidelity.test.ts Add import/export fidelity gate to CI (#69) 2026-07-10 13:59:10 +02:00