Convert (most) HistoryEntry ofy calls to tm (#933)

* Convert (most) HistoryEntry ofy calls to tm

As part of this change, it was necessary to do changes in the JPATM that
are similar (but the opposite) of the changes that we did in
DatastoreTM with regards to converting HistoryEntries to and from the
*History classes.

We leave the ofy() calls in the MapReduce ResaveAllHistoryEntriesAction
for now; that can be converted during the Beam pipeline transition.

Some other tests required registrar-name fixes as well -- because
*History objects have a foreign key on the Registrar table, we have to
use a "real" registrar name in tests.

* Add simple HistoryEntryDaoTest
This commit is contained in:
gbrodman 2021-01-22 14:43:34 -05:00 committed by GitHub
parent 08cec96a93
commit 73210e4b09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 477 additions and 124 deletions

View file

@ -33,7 +33,7 @@
"events": [
{
"eventAction": "registration",
"eventActor": "foo",
"eventActor": "TheRegistrar",
"eventDate": "1997-01-01T00:00:00.000Z"
},
{

View file

@ -33,7 +33,7 @@
"events": [
{
"eventAction": "registration",
"eventActor": "foo",
"eventActor": "TheRegistrar",
"eventDate": "1997-01-01T00:00:00.000Z"
},
{

View file

@ -34,7 +34,7 @@
"events": [
{
"eventAction": "registration",
"eventActor": "foo",
"eventActor": "TheRegistrar",
"eventDate": "1997-01-01T00:00:00.000Z"
},
{
@ -47,7 +47,7 @@
},
{
"eventAction": "deletion",
"eventActor": "foo",
"eventActor": "evilregistrar",
"eventDate": "1999-07-01T00:00:00.000Z"
},
{

View file

@ -33,7 +33,7 @@
"events": [
{
"eventAction": "registration",
"eventActor": "foo",
"eventActor": "TheRegistrar",
"eventDate": "1997-01-01T00:00:00.000Z"
},
{

View file

@ -34,7 +34,7 @@
"events": [
{
"eventAction": "registration",
"eventActor": "foo",
"eventActor": "TheRegistrar",
"eventDate": "1997-01-01T00:00:00.000Z"
},
{

View file

@ -34,7 +34,7 @@
"events": [
{
"eventAction": "registration",
"eventActor": "foo",
"eventActor": "TheRegistrar",
"eventDate": "1997-01-01T00:00:00.000Z"
},
{

View file

@ -31,7 +31,7 @@
"events": [
{
"eventAction": "registration",
"eventActor": "foo",
"eventActor": "unicoderegistrar",
"eventDate": "1999-09-01T00:00:00.000Z"
},
{
@ -44,7 +44,7 @@
},
{
"eventAction": "transfer",
"eventActor": "foo",
"eventActor": "unicoderegistrar",
"eventDate": "1999-12-01T00:00:00.000Z"
},
{

View file

@ -31,7 +31,7 @@
"events": [
{
"eventAction": "registration",
"eventActor": "foo",
"eventActor": "unicoderegistrar",
"eventDate": "1999-09-01T00:00:00.000Z"
},
{
@ -44,7 +44,7 @@
},
{
"eventAction": "transfer",
"eventActor": "foo",
"eventActor": "unicoderegistrar",
"eventDate": "1999-12-01T00:00:00.000Z"
},
{

View file

@ -32,7 +32,7 @@
"events": [
{
"eventAction": "registration",
"eventActor": "foo",
"eventActor": "unicoderegistrar",
"eventDate": "2000-01-01T00:00:00.000Z"
},
{

View file

@ -14,7 +14,7 @@
"events": [
{
"eventAction": "registration",
"eventActor": "foo",
"eventActor": "TheRegistrar",
"eventDate": "1999-01-01T00:00:00.000Z"
},
{