mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Save number of years in DomainApplication
Right now, DomainApplicationCreateFlow checks to make sure that the registration period is in years, but doesn't store it in the DomainApplication explicitly. Instead, when DomainAllocateFlow runs later, it goes back to the XML in the HistoryEntry to get the number of years. Corey suggests that it would be cleaner to store the number of years in the DomainApplication. This is stage one of a data migration; we store the value, but don't actually read it anywhere except in tests. If we have any outstanding domain applications, we will then need to write a scrap tool to populate the years field, after which we can start relying on the field. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=137317739
This commit is contained in:
parent
1b7cee61a5
commit
748dd34385
5 changed files with 21 additions and 0 deletions
|
@ -218,6 +218,7 @@ public final class DomainApplicationCreateFlow extends LoggedInFlow implements T
|
|||
.setLaunchNotice(launchCreate == null ? null : launchCreate.getNotice())
|
||||
.setIdnTableName(idnTableName)
|
||||
.setPhase(launchCreate.getPhase())
|
||||
.setYears(command.getPeriod().getValue())
|
||||
.setApplicationStatus(ApplicationStatus.VALIDATED)
|
||||
.addStatusValue(StatusValue.PENDING_CREATE)
|
||||
.setDsData(secDnsCreate == null ? null : secDnsCreate.getDsData())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue