I’ve changed my object to have a new required property in v2. When I attempt to fetch a v1 object from the datastore, I get BadValueError because v1 doesn’t have the required property. What’s the best way to introduce new required properties on existing data
Share
I would resolve this problem using the mapreduce library.
First, register the mapper in
mapreduce.yaml:then define a
processfunction to modify the entities:If you are dealing with a relative small number of entities, you could avoid mapreduce modifying directly your entities with something like this: