DescriptionClean up PropertyLoadSaver interface.
This removes GetMetaDefault and Problem from the interfaces, and makes GetPLS
errors into panics, on the assumption that if you pass it a bad datatype, you
can't really do anything about it without recompiling, and failing fast is better.
This also fixes a bug where doing any operations on an invalid (non datastore-
compatible) struct would return the unhelpful "unable to extract $kind" error.
R=dnj@chromium.org, hinoka@chromium.org, martiniss@chromium.org, vadimsh@chromium.org
BUG=
Committed: https://github.com/luci/gae/commit/043deeee59a8e1203b3350fb9d315b3d0d7db076
Patch Set 1 #Patch Set 2 : Fix GetMetaDefault silliness #
Total comments: 3
Patch Set 3 : get rid of Problem #Patch Set 4 : fix it more #Patch Set 5 : more simplification #
Total comments: 5
Patch Set 6 : whitespace #Patch Set 7 : panic harder, better, faster, stronger #Patch Set 8 : remove accidental extra test #
Total comments: 1
Messages
Total messages: 13 (4 generated)
|