mirror of
https://github.com/google/nomulus
synced 2026-07-19 06:22:33 +00:00
Delete end-date sunrise, landrush, and sunrush phases
This also deletes the associated commands and domain application specific entities. We haven't used any of these TLD phases since early 2015 and have no intent to do so in the future, so it makes sense to delete them now so we don't have to carry them through the Registry 3.0 migration. Note that, while there are data model changes, there should be no required data migrations. The fields and entities being removed will simply remain as orphans. I confirmed that the removed types (such as the SUNRUSH_ADD GracePeriodType) are no longer used in production data, and left types that are still used, e.g. BillingEvent.Flag.LANDRUSH or HistoryEntry.Type.ALLOCATE. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228752843
This commit is contained in:
@@ -33,7 +33,6 @@ import google.registry.model.EppResource.BuilderWithTransferData;
|
||||
import google.registry.model.EppResource.ForeignKeyedEppResource;
|
||||
import google.registry.model.EppResource.ResourceWithTransferData;
|
||||
import google.registry.model.contact.ContactResource;
|
||||
import google.registry.model.domain.DomainApplication;
|
||||
import google.registry.model.domain.DomainBase;
|
||||
import google.registry.model.eppcommon.StatusValue;
|
||||
import google.registry.model.index.ForeignKeyIndex;
|
||||
@@ -158,22 +157,6 @@ public final class EppResourceUtils {
|
||||
resource, latestOf(now, resource.getUpdateAutoTimestamp().getTimestamp())));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the domain application with the given application id if it exists, or absent if it does
|
||||
* not or is soft-deleted as of the given time.
|
||||
*/
|
||||
public static Optional<DomainApplication> loadDomainApplication(
|
||||
String applicationId, DateTime now) {
|
||||
DomainApplication application =
|
||||
ofy().load().key(Key.create(DomainApplication.class, applicationId)).now();
|
||||
if (application == null || isAtOrAfter(now, application.getDeletionTime())) {
|
||||
return Optional.empty();
|
||||
}
|
||||
// Applications don't have any speculative changes that become effective later, so no need to
|
||||
// clone forward in time.
|
||||
return Optional.of(application);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks multiple {@link EppResource} objects from Datastore by unique ids.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user