mirror of
https://github.com/google/nomulus.git
synced 2025-07-08 20:23:24 +02:00
HistoryEntry is used to record all histories (contact, domain, host) in Datastore. In SQL it is now split into three subclasses (and thus tables): ContactHistory, DomainHistory and HostHistory. Its builder is genericized as a result which led to a lot of compiler warnings for the use of a raw HistoryEntry in the existing code base. This PR cleans things up by replacing all the explicit use of raw HistoryEntry with the corresponding subclass and also adds some guardrails to prevent the use of raw HistoryEntry accidentally. Note that because DomainHistory includes nsHosts and gracePeriodHistory, both of which are assigned a roid from ofy when built, the assigned roids for resources after history entries are built are incremented compared to when only HistoryEntrys are built (before this PR) in RdapDomainSearchActionTest. Also added a convenient tm().updateAll() varargs method. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/1150) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
gradle/dependency-locks | ||
src | ||
WEB-INF/appengine-generated | ||
build.gradle | ||
Dockerfile |