feat(attachments): accept uploads through staging and transactional outbox

This commit is contained in:
kk10
2026-11-14 19:52:51 +03:00
parent 4dbbd65bcf
commit 8b0ab5440d
10 changed files with 70 additions and 262 deletions
+3 -9
View File
@@ -96,22 +96,19 @@ func printReport(report reconcile.Report) {
report.ListPages,
)
fmt.Printf(
"found orphan_objects=%d missing_attachments=%d stale_uploads=%d corrupt_objects=%d\n",
"found orphan_objects=%d missing_attachments=%d corrupt_objects=%d\n",
len(report.OrphanObjects),
len(report.MissingAttachments),
len(report.StaleUploads),
len(report.CorruptObjects),
)
fmt.Printf(
"skipped fresh=%d referenced=%d inactive=%d\n",
"skipped fresh=%d inactive=%d\n",
report.SkippedFresh,
report.SkippedReferenced,
report.SkippedInactive,
)
fmt.Printf(
"changes deleted_objects=%d deleted_rows=%d marked_failed=%d\n",
"changes deleted_objects=%d marked_failed=%d\n",
report.DeletedObjects,
report.DeletedRows,
report.MarkedFailed,
)
@@ -124,9 +121,6 @@ func printReport(report reconcile.Report) {
for _, id := range report.MissingAttachments {
fmt.Printf("missing_attachment %s\n", id)
}
for _, id := range report.StaleUploads {
fmt.Printf("stale_upload %s\n", id)
}
for _, message := range report.Errors {
fmt.Printf("error %s\n", message)
}