Skip to content

Commit

Permalink
Renaming restore to restate
Browse files Browse the repository at this point in the history
  • Loading branch information
jjoyce0510 committed May 27, 2022
1 parent 5ffa3e5 commit 346882c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public Function<UpgradeContext, UpgradeStepResult> executable() {
_entityService.produceMetadataChangeLog(urn, entityName, aspectName, aspectSpec, null, aspectRecord, null,
latestSystemMetadata,
new AuditStamp().setActor(UrnUtils.getUrn(SYSTEM_ACTOR)).setTime(System.currentTimeMillis()),
ChangeType.RESTORE);
ChangeType.RESTATE);

totalRowsMigrated++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void invoke(@Nonnull MetadataChangeLog event) {
}
Urn urn = EntityKeyUtils.getUrnFromLog(event, entitySpec.getKeyAspectSpec());

if (event.getChangeType() == ChangeType.UPSERT || event.getChangeType() == ChangeType.RESTORE) {
if (event.getChangeType() == ChangeType.UPSERT || event.getChangeType() == ChangeType.RESTATE) {

if (!event.hasAspectName() || !event.hasAspect()) {
log.error("Aspect or aspect name is missing");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ enum ChangeType {
PATCH

/**
* Restore an aspect, eg. in a backfill.
* Restate an aspect, eg. in a index refresh.
*/
RESTORE
RESTATE
}
Original file line number Diff line number Diff line change
Expand Up @@ -1679,12 +1679,12 @@
"name" : "ChangeType",
"namespace" : "com.linkedin.events.metadata",
"doc" : "Descriptor for a change action",
"symbols" : [ "UPSERT", "CREATE", "UPDATE", "DELETE", "PATCH", "RESTORE" ],
"symbols" : [ "UPSERT", "CREATE", "UPDATE", "DELETE", "PATCH", "RESTATE" ],
"symbolDocs" : {
"CREATE" : "NOT SUPPORTED YET\ninsert if not exists. otherwise fail",
"DELETE" : "NOT SUPPORTED YET\ndelete action",
"PATCH" : "NOT SUPPORTED YET\npatch the changes instead of full replace",
"RESTORE" : "Restore an aspect, eg. in a backfill.",
"RESTATE" : "Restate an aspect, eg. in a index refresh.",
"UPDATE" : "NOT SUPPORTED YET\nupdate if exists. otherwise fail",
"UPSERT" : "insert if not exists. otherwise update"
}
Expand Down

0 comments on commit 346882c

Please sign in to comment.