Skip to content

Conversation

@torcolvin
Copy link
Collaborator

A deleted document should not even be processed, before it would error in UnmarshalDocumentSyncDataFromFeed.

I also changed the code so that it doesn't error the job, but just skips processing this document. In the case that a document has invalid _sync data, I think other documents shouldn't also fail.

Pre-review checklist

  • Removed debug logging (fmt.Print, log.Print, ...)
  • Logging sensitive data? Make sure it's tagged (e.g. base.UD(docID), base.MD(dbName))
  • Updated relevant information in the API specifications (such as endpoint descriptions, schemas, ...) in docs/api

Integration Tests

@github-actions
Copy link

github-actions bot commented Jan 7, 2025

Redocly previews

@torcolvin torcolvin requested a review from adamcfraser January 7, 2025 20:33
@adamcfraser adamcfraser changed the title CBG-4402 do not attachment migration error on document deletion CBG-4402 do not terminate attachment migration error on document deletion Jan 8, 2025
@adamcfraser adamcfraser assigned torcolvin and unassigned adamcfraser Jan 8, 2025
@torcolvin torcolvin assigned adamcfraser and unassigned torcolvin Jan 9, 2025
@bbrks bbrks assigned torcolvin and unassigned adamcfraser Jan 10, 2025
@torcolvin torcolvin enabled auto-merge (squash) January 10, 2025 14:12
@torcolvin torcolvin requested a review from adamcfraser January 10, 2025 14:12
@torcolvin torcolvin dismissed adamcfraser’s stale review January 10, 2025 14:13

addressed comments

@torcolvin torcolvin merged commit bd17871 into release/anemone Jan 10, 2025
39 checks passed
@torcolvin torcolvin deleted the CBG-4402 branch January 10, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants