Descriptionfilter/txnBuf: Use fully-qualified App ID.
Use the fully-qualified app ID when creating the in-memory datastore for
transaction buffer. Previously, transaction buffer would use the
standard App ID, while production datastore would use the
fully-qualified App ID, causing key incompatibility errors in
production.
Cleanup impl/memory's NewDatastore function to not install superfluous
services into the Context. This draws a cleaner line between
impl/memory's dual purposes as both a rich testing enviornment and a
production-grade in-memory datastore.
In addition, have impl/memory's info service differentiate between the
two. This causes tests for filter/txnBuf to properly fail lacking this
fix, enabling regression protection.
To support this, impl/memory's Info service will now parse the supplied
App ID. If it contains a "~" character, it is split into fully-qualified
and regular AppID. Otherwise, the two will be the same.
BUG=
Committed: https://github.com/luci/gae/commit/5e312adb9e0e0ce0abaa10d4d94f5bd5e11671e3
Patch Set 1 #Patch Set 2 : Go back to "dev~", too many things care. #
Total comments: 2
Patch Set 3 : Use public methods for defining Info service in tests. #
Messages
Total messages: 11 (4 generated)
|