Skip to content

feat: added flag to ignore unknown changes when migrating from Mongock#910

Open
osantana85 wants to merge 1 commit into
masterfrom
feat/ignore-unknown-changes
Open

feat: added flag to ignore unknown changes when migrating from Mongock#910
osantana85 wants to merge 1 commit into
masterfrom
feat/ignore-unknown-changes

Conversation

@osantana85
Copy link
Copy Markdown
Member

Add a new @MongockSupport flag, ignoreUnknownAuditEntries, to relax legacy Mongock audit import when the origin contains entries that do not match any change in the current Flamingock pipeline.

  • add the new annotation field and internal property key
  • propagate the flag through the Mongock annotation processor
  • resolve unknown legacy entries through PipelineHelper.findStageId
  • ignore unmatched entries in relaxed mode with a warning
  • fail in strict mode with clearer import-specific messaging
  • add unit and importer test coverage for strict and relaxed scenarios

Add a new @MongockSupport flag, ignoreUnknownAuditEntries, to relax legacy Mongock audit import when the origin contains entries that do not match any change in the current Flamingock pipeline.

- add the new annotation field and internal property key
- propagate the flag through the Mongock annotation processor
- resolve unknown legacy entries through PipelineHelper.findStageId
- ignore unmatched entries in relaxed mode with a warning
- fail in strict mode with clearer import-specific messaging
- add unit and importer test coverage for strict and relaxed scenarios
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.

1 participant