mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Move domainCreateFailfast before cloneAndLinkReferences
This avoids loading all contacts and hosts before the failfast runs ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154179321
This commit is contained in:
parent
33fabfff04
commit
4553422ade
3 changed files with 3 additions and 3 deletions
|
@ -193,12 +193,12 @@ public class DomainCreateFlow implements TransactionalFlow {
|
|||
extensionManager.validate();
|
||||
validateClientIsLoggedIn(clientId);
|
||||
DateTime now = ofy().getTransactionTime();
|
||||
failfastForCreate(targetId, now);
|
||||
Create command = cloneAndLinkReferences((Create) resourceCommand, now);
|
||||
Period period = command.getPeriod();
|
||||
verifyUnitIsYears(period);
|
||||
int years = period.getValue();
|
||||
validateRegistrationPeriod(years);
|
||||
failfastForCreate(targetId, now);
|
||||
verifyResourceDoesNotExist(DomainResource.class, targetId, now);
|
||||
// Validate that this is actually a legal domain name on a TLD that the registrar has access to.
|
||||
InternetDomainName domainName = validateDomainName(command.getFullyQualifiedDomainName());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue