mirror of
https://github.com/google/nomulus
synced 2026-01-08 07:11:44 +00:00
Remove LINKED from the disallowed statuses for contact/host delete
LINKED is supposed to be a virtual status that gets added/removed when needed. It's mistakenly been persisted to datastore on many resources, but the persisted value is meaningless and may not represent reality at all. There is no reason to check for LINKED status before kicking off a delete, since the smoke test and [] will catch all actual linked objects, and the LINKED status can be causing false positives for objects that are no longer LINKED. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=145422457
This commit is contained in:
@@ -61,7 +61,6 @@ import org.joda.time.DateTime;
|
||||
public final class ContactDeleteFlow implements TransactionalFlow {
|
||||
|
||||
private static final ImmutableSet<StatusValue> DISALLOWED_STATUSES = ImmutableSet.of(
|
||||
StatusValue.LINKED,
|
||||
StatusValue.CLIENT_DELETE_PROHIBITED,
|
||||
StatusValue.PENDING_DELETE,
|
||||
StatusValue.SERVER_DELETE_PROHIBITED);
|
||||
|
||||
@@ -62,7 +62,6 @@ import org.joda.time.DateTime;
|
||||
public final class HostDeleteFlow implements TransactionalFlow {
|
||||
|
||||
private static final ImmutableSet<StatusValue> DISALLOWED_STATUSES = ImmutableSet.of(
|
||||
StatusValue.LINKED,
|
||||
StatusValue.CLIENT_DELETE_PROHIBITED,
|
||||
StatusValue.PENDING_DELETE,
|
||||
StatusValue.SERVER_DELETE_PROHIBITED);
|
||||
|
||||
Reference in New Issue
Block a user