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:
cgoldfeder 2017-01-24 08:38:26 -08:00 committed by Ben McIlwain
parent d16971c34f
commit 15ba52988b
2 changed files with 0 additions and 2 deletions

View file

@ -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);