From 42513f41cac300ff247a17b8a024bbf95bf8897f Mon Sep 17 00:00:00 2001 From: mcilwain Date: Fri, 19 May 2017 12:02:40 -0700 Subject: [PATCH] Remove migration @OnLoad for EppResource StatusValue LINKED This was needed to correct bad data (LINKED status values on EppResources). The code has been fixed to no longer persist LINKED on any resources and I ran a resave all action yesterday to remove all persisted LINKED status values, so the migration @OnLoad can be safely removed now. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=156580334 --- java/google/registry/model/EppResource.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/java/google/registry/model/EppResource.java b/java/google/registry/model/EppResource.java index c80d16c27..74787e185 100644 --- a/java/google/registry/model/EppResource.java +++ b/java/google/registry/model/EppResource.java @@ -18,7 +18,6 @@ import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkState; import static com.google.common.collect.Sets.difference; import static com.google.common.collect.Sets.union; -import static google.registry.util.CollectionUtils.difference; import static google.registry.util.CollectionUtils.nullToEmpty; import static google.registry.util.CollectionUtils.nullToEmptyImmutableCopy; import static google.registry.util.DateTimeUtils.END_OF_TIME; @@ -30,7 +29,6 @@ import com.google.common.collect.ImmutableSortedMap; import com.googlecode.objectify.Key; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Index; -import com.googlecode.objectify.annotation.OnLoad; import google.registry.model.eppcommon.StatusValue; import google.registry.model.ofy.CommitLogManifest; import google.registry.model.transfer.TransferData; @@ -302,12 +300,4 @@ public abstract class EppResource extends BackupGroupRoot implements Buildable { return ImmutableObject.cloneEmptyToNull(super.build()); } } - - // TODO(b/34664935): remove this once LINKED has been removed from all persisted resources. - @OnLoad - void onLoadRemoveLinked() { - if (status != null) { - status = difference(status, StatusValue.LINKED); - } - } }