Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add action emitNoChangeMetadataAuditEvent & add ingestionMode in mae #303

Merged
merged 2 commits into from
Oct 19, 2023

Conversation

JiaoMaWHU
Copy link
Contributor

Summary

  • start sending ingestionMode in backfill MAEs
  • add emitNoChangeMetadataAuditEvent action with ingestionMode to support backfill into both live and backup index.
  • deprecate backfillWithNewValue action

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

@JiaoMaWHU JiaoMaWHU self-assigned this Oct 19, 2023
@JiaoMaWHU JiaoMaWHU requested review from jsdonn and yangyangv2 and removed request for jsdonn October 19, 2023 00:13
verify(_mockProducer, times(1)).produceMetadataAuditEvent(urn, null, aspect);
verify(_mockProducer, times(1)).produceAspectSpecificMetadataAuditEvent(urn, null, aspect, null);
verify(_mockProducer, times(0)).produceMetadataAuditEvent(urn, aspect, aspect);
verify(_mockProducer, times(0)).produceAspectSpecificMetadataAuditEvent(urn, aspect, aspect, null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also not this line, but I see line 908/911 still have mentions of MAE_ONLY_WITH_OLD_VALUE_NULL. Want to remove those (and elsewhere)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you think it makes more sense to remove it instead of having ut verifying it? I intended to keep it because I won't remove it from the enum, so want to remind ppl that do not use it.

@@ -24,4 +24,10 @@ enum BackfillMode {
* Backfill only using MAE. Setting the old value in MAE payload as null.
*/
MAE_ONLY_WITH_OLD_VALUE_NULL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add something here about the deprecation + not to use it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

Copy link
Contributor

@jsdonn jsdonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing comments

@JiaoMaWHU JiaoMaWHU merged commit 26cc629 into master Oct 19, 2023
2 checks passed
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.

2 participants