Add a mapreduce to delete all domain applications

This also deletes associated entities including indexes and history entries.

This needs to run as a prerequisite to [] which deletes all domain
application code entirely. The entities themselves need to be deleted first so
that loading DomainBases in the future doesn't accidentally get applications
which the code no longer knows how to handle.

This deletion is safe to perform because the only remaining applications in our
system are historical and we no longer refer to them. Backups will be retained
in BigQuery.

This mapreduce will be deleted at the same time that the DomainApplication code
is.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=227738528
This commit is contained in:
mcilwain 2019-01-03 13:20:39 -08:00 committed by Ben McIlwain
parent 2af24c945c
commit 577c6f6bc9
5 changed files with 221 additions and 21 deletions

View file

@ -34,6 +34,7 @@ import google.registry.tools.server.CreatePremiumListAction;
import google.registry.tools.server.DeleteEntityAction;
import google.registry.tools.server.GenerateZoneFilesAction;
import google.registry.tools.server.KillAllCommitLogsAction;
import google.registry.tools.server.KillAllDomainApplicationsAction;
import google.registry.tools.server.KillAllEppResourcesAction;
import google.registry.tools.server.ListDomainsAction;
import google.registry.tools.server.ListHostsAction;
@ -69,6 +70,7 @@ interface ToolsRequestComponent {
FlowComponent.Builder flowComponentBuilder();
GenerateZoneFilesAction generateZoneFilesAction();
KillAllCommitLogsAction killAllCommitLogsAction();
KillAllDomainApplicationsAction killAllDomainApplicationsAction();
KillAllEppResourcesAction killAllEppResourcesAction();
ListDomainsAction listDomainsAction();
ListHostsAction listHostsAction();