Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Issue 1525453002: Handle unexpected entity fields gracefully. (Closed)

Created:
5 years ago by iannucci
Modified:
5 years ago
CC:
chromium-reviews, infra-reviews+luci-gae_chromium.org
Base URL:
https://github.com/luci/gae.git@master
Target Ref:
refs/heads/master
Project:
luci-gae
Visibility:
Public.

Description

Handle unexpected entity fields gracefully. Introduces a new field type 'extra', which allows full control over what to do with the extra properties, instead of having all operations return unhelpful conversion error messages. This allows black-holes, schema upgrades and 'expando' style mixed structured/unstructured objects. Please see the tests for usage and examples. R=dnj@chromium.org, estaab@chromium.org, vadimsh@chromium.org BUG=https://github.com/luci/gae/issues/13 Committed: https://github.com/luci/gae/commit/d26455b74be21a3f1ab72e2eb9088039f1191ad6

Patch Set 1 #

Total comments: 3

Patch Set 2 : fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -18 lines) Patch
M service/datastore/datastore_test.go View 1 1 chunk +293 lines, -0 lines 0 comments Download
M service/datastore/pls.go View 1 chunk +40 lines, -0 lines 0 comments Download
M service/datastore/pls_impl.go View 6 chunks +65 lines, -13 lines 0 comments Download
M service/datastore/pls_test.go View 1 chunk +5 lines, -5 lines 0 comments Download
M service/datastore/reflect.go View 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 10 (4 generated)
iannucci
5 years ago (2015-12-12 18:57:18 UTC) #1
dnj
lgtm https://chromiumcodereview.appspot.com/1525453002/diff/1/service/datastore/datastore_test.go File service/datastore/datastore_test.go (right): https://chromiumcodereview.appspot.com/1525453002/diff/1/service/datastore/datastore_test.go#newcode1093 service/datastore/datastore_test.go:1093: b := &BlackHole{ID: 10, NewStuff: "amazeballs"} (╯°□°)╯︵ ┻━┻
5 years ago (2015-12-12 20:18:34 UTC) #2
iannucci
https://codereview.chromium.org/1525453002/diff/1/service/datastore/datastore_test.go File service/datastore/datastore_test.go (right): https://codereview.chromium.org/1525453002/diff/1/service/datastore/datastore_test.go#newcode1093 service/datastore/datastore_test.go:1093: b := &BlackHole{ID: 10, NewStuff: "amazeballs"} On 2015/12/12 at ...
5 years ago (2015-12-12 21:14:42 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1525453002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1525453002/20001
5 years ago (2015-12-12 21:15:02 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://github.com/luci/gae/commit/d26455b74be21a3f1ab72e2eb9088039f1191ad6
5 years ago (2015-12-12 21:17:56 UTC) #8
dnj (Google)
5 years ago (2015-12-13 02:09:24 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/1525453002/diff/1/service/datastore/datastore...
File service/datastore/datastore_test.go (right):

https://codereview.chromium.org/1525453002/diff/1/service/datastore/datastore...
service/datastore/datastore_test.go:1093: b := &BlackHole{ID: 10, NewStuff:
"amazeballs"}
On 2015/12/12 21:14:42, iannucci wrote:
> On 2015/12/12 at 20:18:34, dnj wrote:
> > (╯°□°)╯︵ ┻━┻
> 
> good point. done.

+1

Powered by Google App Engine
This is Rietveld 408576698