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

Issue 1227183003: Change RawDatastore to do less reflection. (Closed)

Created:
5 years, 5 months ago by iannucci
Modified:
5 years, 5 months ago
Reviewers:
dnj, Vadim Sh., martiniss
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/infra/infra.git@move_dummy
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

Change RawDatastore to do less reflection. Followup CL will provide the 'magic' reflection-full Datastore interface. This change makes filters easier to implement, none of the layers of the stack are required to do reflection, instead of the previous design where all of the layers were forced to do reflection. R=dnj@chromium.org, martiniss@chromium.org, vadimsh@chromium.org BUG= Committed: https://chromium.googlesource.com/infra/infra/+/36ccdaa83237cd89531af120424b945262f0b948

Patch Set 1 #

Patch Set 2 : It's the interfaces, stupid! #

Patch Set 3 : rebase #

Total comments: 39

Patch Set 4 : Address self-comments and make pass new test.py #

Total comments: 14

Patch Set 5 : fixes #

Total comments: 1

Patch Set 6 : fix No/ShouldIndex #

Unified diffs Side-by-side diffs Delta from patch set Stats (+749 lines, -601 lines) Patch
M go/src/infra/gae/epservice/example/service_add.go View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M go/src/infra/gae/epservice/example/service_cas.go View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M go/src/infra/gae/epservice/example/service_currentvalue.go View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M go/src/infra/gae/epservice/example/service_list.go View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M go/src/infra/gae/libs/gae/dummy/dummy.go View 1 2 1 chunk +13 lines, -13 lines 0 comments Download
M go/src/infra/gae/libs/gae/gae.infra_testing View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M go/src/infra/gae/libs/gae/helper/datastore.go View 1 2 2 chunks +2 lines, -44 lines 0 comments Download
M go/src/infra/gae/libs/gae/helper/datastore_impl.go View 1 2 3 4 5 11 chunks +128 lines, -63 lines 0 comments Download
M go/src/infra/gae/libs/gae/helper/datastore_test.go View 1 2 3 4 5 39 chunks +193 lines, -162 lines 0 comments Download
M go/src/infra/gae/libs/gae/helper/helper.infra_testing View 1 1 chunk +2 lines, -2 lines 0 comments Download
M go/src/infra/gae/libs/gae/helper/serialize.go View 1 2 3 4 5 chunks +8 lines, -5 lines 0 comments Download
M go/src/infra/gae/libs/gae/helper/serialize_test.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M go/src/infra/gae/libs/gae/memory/datastore_query.go View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M go/src/infra/gae/libs/gae/memory/plist.go View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M go/src/infra/gae/libs/gae/memory/plist_test.go View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M go/src/infra/gae/libs/gae/memory/raw_datstore.go View 1 2 3 chunks +10 lines, -10 lines 0 comments Download
M go/src/infra/gae/libs/gae/memory/raw_datstore_data.go View 1 2 5 chunks +15 lines, -31 lines 0 comments Download
M go/src/infra/gae/libs/gae/memory/raw_datstore_test.go View 1 24 chunks +45 lines, -55 lines 0 comments Download
M go/src/infra/gae/libs/gae/memory/testing_utils_test.go View 1 2 3 4 1 chunk +4 lines, -10 lines 0 comments Download
M go/src/infra/gae/libs/gae/prod/datastore_key.go View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M go/src/infra/gae/libs/gae/prod/raw_datastore.go View 1 2 4 chunks +30 lines, -40 lines 0 comments Download
M go/src/infra/gae/libs/gae/prod/raw_datastore_type_converter.go View 1 2 3 4 4 chunks +12 lines, -18 lines 0 comments Download
M go/src/infra/gae/libs/gae/properties.go View 1 2 3 4 5 6 chunks +139 lines, -46 lines 0 comments Download
M go/src/infra/gae/libs/gae/properties_test.go View 1 2 3 4 5 2 chunks +66 lines, -51 lines 0 comments Download
M go/src/infra/gae/libs/gae/raw_datastore.go View 1 2 chunks +17 lines, -16 lines 0 comments Download
M go/src/infra/gae/libs/gae/upstream_errors.go View 1 1 chunk +16 lines, -0 lines 0 comments Download
M go/src/infra/gae/libs/meta/eg.go View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M go/src/infra/gae/libs/meta/eg_test.go View 1 chunk +3 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
iannucci
5 years, 5 months ago (2015-07-11 09:08:08 UTC) #1
iannucci
Okie dokie, this one is the next one in the chain. I'll drop some seed ...
5 years, 5 months ago (2015-07-14 17:27:44 UTC) #2
iannucci
ptal! https://chromiumcodereview.appspot.com/1227183003/diff/40001/go/src/infra/gae/libs/gae/helper/datastore.go File go/src/infra/gae/libs/gae/helper/datastore.go (right): https://chromiumcodereview.appspot.com/1227183003/diff/40001/go/src/infra/gae/libs/gae/helper/datastore.go#newcode17 go/src/infra/gae/libs/gae/helper/datastore.go:17: func GetPLS(o interface{}) gae.DSPropertyLoadSaver { To simplify things, ...
5 years, 5 months ago (2015-07-14 18:15:44 UTC) #3
Vadim Sh.
https://codereview.chromium.org/1227183003/diff/40001/go/src/infra/gae/libs/gae/helper/datastore_impl.go File go/src/infra/gae/libs/gae/helper/datastore_impl.go (right): https://codereview.chromium.org/1227183003/diff/40001/go/src/infra/gae/libs/gae/helper/datastore_impl.go#newcode12 go/src/infra/gae/libs/gae/helper/datastore_impl.go:12: "infra/gae/libs/gae" nit: move into separate import block https://codereview.chromium.org/1227183003/diff/40001/go/src/infra/gae/libs/gae/helper/datastore_impl.go#newcode249 go/src/infra/gae/libs/gae/helper/datastore_impl.go:249: ...
5 years, 5 months ago (2015-07-14 18:55:44 UTC) #4
dnj
https://codereview.chromium.org/1227183003/diff/40001/go/src/infra/gae/libs/gae/helper/datastore_impl.go File go/src/infra/gae/libs/gae/helper/datastore_impl.go (right): https://codereview.chromium.org/1227183003/diff/40001/go/src/infra/gae/libs/gae/helper/datastore_impl.go#newcode350 go/src/infra/gae/libs/gae/helper/datastore_impl.go:350: pv := recover() On 2015/07/14 18:55:43, Vadim Sh. wrote: ...
5 years, 5 months ago (2015-07-14 19:34:58 UTC) #5
iannucci
fixes! https://codereview.chromium.org/1227183003/diff/40001/go/src/infra/gae/libs/gae/helper/datastore_impl.go File go/src/infra/gae/libs/gae/helper/datastore_impl.go (right): https://codereview.chromium.org/1227183003/diff/40001/go/src/infra/gae/libs/gae/helper/datastore_impl.go#newcode12 go/src/infra/gae/libs/gae/helper/datastore_impl.go:12: "infra/gae/libs/gae" On 2015/07/14 18:55:43, Vadim Sh. wrote: > ...
5 years, 5 months ago (2015-07-14 22:45:49 UTC) #6
Vadim Sh.
lgtm with nit https://codereview.chromium.org/1227183003/diff/80001/go/src/infra/gae/libs/gae/properties.go File go/src/infra/gae/libs/gae/properties.go (right): https://codereview.chromium.org/1227183003/diff/80001/go/src/infra/gae/libs/gae/properties.go#newcode43 go/src/infra/gae/libs/gae/properties.go:43: ShouldIndex IndexSetting = false nit: ShouldIndex ...
5 years, 5 months ago (2015-07-14 22:56:08 UTC) #7
dnj
lgtm
5 years, 5 months ago (2015-07-14 22:58:56 UTC) #8
iannucci
On 2015/07/14 22:56:08, Vadim Sh. wrote: > lgtm with nit > > https://codereview.chromium.org/1227183003/diff/80001/go/src/infra/gae/libs/gae/properties.go > File ...
5 years, 5 months ago (2015-07-14 23:03:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1227183003/80001
5 years, 5 months ago (2015-07-14 23:03:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1227183003/100001
5 years, 5 months ago (2015-07-14 23:04:37 UTC) #15
commit-bot: I haz the power
5 years, 5 months ago (2015-07-14 23:07:31 UTC) #16
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/infra/infra/+/36ccdaa83237cd89531af120424b9...

Powered by Google App Engine
This is Rietveld 408576698