google-nomulus/java/google/registry/tools/server
mountford e90e840757 Change GenerateZoneFilesAction to emit glue records only where appropriate
Previously, GenerateZoneFilesAction mapreduced its way through all domains and hosts for the specified TLD(s), emitting information for each matching domain and host (subject to constraints like not being deleted and so on). This resulted in host information (aka glue records) for all hosts subordinate to domains in the specified TLD(s). This is incorrect. DNS glue records should only be present for hosts which act as nameservers for their superordinate domains.

The new version of the mapreduce iterates only over domains. When a matching domain is found, a check is made to see whether any subordinate hosts are also nameservers for the domain, in which case host information is generated.

The test was updated to reflect the new reality, and check for a couple additional nuances.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=165766472
2017-08-29 16:51:35 -04:00
..
BUILD Refactor/rename refresh all DNS action 2017-07-10 11:18:41 -04:00
CreateGroupsAction.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
CreateOrUpdatePremiumListAction.java Don't log premium list nomulus tool usage errors as SEVERE 2017-03-13 11:22:55 -04:00
CreatePremiumListAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
DeleteEntityAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
GenerateZoneFilesAction.java Change GenerateZoneFilesAction to emit glue records only where appropriate 2017-08-29 16:51:35 -04:00
KillAllCommitLogsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
KillAllEntitiesReducer.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
KillAllEppResourcesAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ListDomainsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ListHostsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ListObjectsAction.java Make ListObjectsAction return 200 when sending JSON error 2017-02-27 11:10:37 -05:00
ListPremiumListsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ListRegistrarsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ListReservedListsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ListTldsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
RefreshDnsForAllDomainsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ResaveAllEppResourcesAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ToolsServerModule.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UpdatePremiumListAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
VerifyOteAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00