Switch over to non-ReferenceUnion fields on DomainBase

This is the second phase of a three phase migration to remove
ReferenceUnions. As of the end of this phase, ReferenceUnions are no longer read
from in any active code paths, but are still written to in case a rollback to
the previous version is necessary. The third and final phase will remove the
ReferenceUnions entirely.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=136388057
This commit is contained in:
mcilwain 2016-10-17 13:26:31 -07:00 committed by Ben McIlwain
parent d9dbf2ec1a
commit 361a53a3c9
6 changed files with 25 additions and 34 deletions

View file

@ -269,7 +269,7 @@ public class RdapDomainSearchAction extends RdapActionBase {
for (List<Key<HostResource>> chunk : Iterables.partition(hostKeys, 30)) {
for (DomainResource domain : ofy().load()
.type(DomainResource.class)
.filter("nameservers.linked in", chunk)
.filter("nsHosts in", chunk)
.filter("deletionTime >", now)
.limit(rdapResultSetMaxSize + 1)) {
if (!domains.contains(domain)) {