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

Issue 1270113002: Re-add metadata passthrough on Get operations (Closed)

Created:
5 years, 4 months ago by iannucci
Modified:
5 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://github.com/luci/gae.git@fix_other_interfaces
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Re-add metadata passthrough on Get operations It got lost in translation during the RawInterface conversion. This will be used to e.g. allow SomeStruct to set a default dscache.enable metadatum when doing e.g. Interface.GetMulti([]SomeStruct{...}). R=dnj@chromium.org, dnj@google.com, estaab@chromium.org, tandrii@chromium.org, vadimsh@chromium.org BUG= Committed: https://github.com/luci/gae/commit/00d1a80545d14379fbe4b851ff638f7e9be85e84

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Meta mo' betta #

Patch Set 4 : add another test #

Total comments: 1

Patch Set 5 : fix usages #

Patch Set 6 : safer, add tests #

Total comments: 4

Patch Set 7 : fix stuff #

Patch Set 8 : cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -124 lines) Patch
M filter/count/rds.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M filter/featureBreaker/rds.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M impl/dummy/dummy.go View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M impl/memory/raw_datastore.go View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M impl/prod/raw_datastore.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M service/datastore/checkfilter.go View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M service/datastore/checkfilter_test.go View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M service/datastore/datastore.go View 1 2 3 4 5 2 chunks +4 lines, -8 lines 0 comments Download
M service/datastore/datastore_test.go View 1 2 6 chunks +20 lines, -8 lines 0 comments Download
M service/datastore/multiarg.go View 1 2 3 4 3 chunks +18 lines, -47 lines 0 comments Download
M service/datastore/pls_impl.go View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M service/datastore/pls_test.go View 1 2 8 chunks +29 lines, -11 lines 0 comments Download
M service/datastore/properties.go View 1 2 3 4 5 6 7 chunks +65 lines, -28 lines 0 comments Download
M service/datastore/properties_test.go View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M service/datastore/raw_interface.go View 1 2 3 4 5 2 chunks +49 lines, -1 line 0 comments Download
A service/datastore/raw_interface_test.go View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
M service/datastore/reflect.go View 1 2 3 4 5 6 7 2 chunks +0 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (1 generated)
iannucci
5 years, 4 months ago (2015-08-04 02:45:26 UTC) #1
iannucci
rebased, ptal
5 years, 4 months ago (2015-08-04 18:18:22 UTC) #2
iannucci
actually hang on a sec, this interface is a bit kludgey. Fix coming shortly.
5 years, 4 months ago (2015-08-04 19:12:06 UTC) #3
iannucci
Ok, PTAL again. This makes the metadata passthrough a bit more typeful and less ambiguous ...
5 years, 4 months ago (2015-08-04 21:58:47 UTC) #4
dnj
lgtm https://codereview.chromium.org/1270113002/diff/60001/service/datastore/raw_interface.go File service/datastore/raw_interface.go (right): https://codereview.chromium.org/1270113002/diff/60001/service/datastore/raw_interface.go#newcode113 service/datastore/raw_interface.go:113: if idx >= len(m) { What's the use ...
5 years, 4 months ago (2015-08-04 22:16:06 UTC) #5
iannucci
On 2015/08/04 22:16:06, dnj wrote: > lgtm > > https://codereview.chromium.org/1270113002/diff/60001/service/datastore/raw_interface.go > File service/datastore/raw_interface.go (right): > ...
5 years, 4 months ago (2015-08-04 23:41:06 UTC) #6
iannucci
On 2015/08/04 23:41:06, iannucci wrote: > On 2015/08/04 22:16:06, dnj wrote: > > lgtm > ...
5 years, 4 months ago (2015-08-04 23:41:55 UTC) #7
iannucci
On 2015/08/04 23:41:55, iannucci wrote: > On 2015/08/04 23:41:06, iannucci wrote: > > On 2015/08/04 ...
5 years, 4 months ago (2015-08-04 23:53:49 UTC) #8
dnj
> Mer... I don't like the asymmetry. MultiMetaGetter is supposed to be a really > ...
5 years, 4 months ago (2015-08-05 00:02:21 UTC) #9
iannucci
On 2015/08/05 00:02:21, dnj wrote: > > Mer... I don't like the asymmetry. MultiMetaGetter is ...
5 years, 4 months ago (2015-08-05 00:04:52 UTC) #10
dnj
Nice boilerplate crushing. https://codereview.chromium.org/1270113002/diff/100001/service/datastore/properties.go File service/datastore/properties.go (right): https://codereview.chromium.org/1270113002/diff/100001/service/datastore/properties.go#newcode227 service/datastore/properties.go:227: func UpconvertUnderlyingType(o interface{}, t reflect.Type) (interface{}, ...
5 years, 4 months ago (2015-08-05 00:38:41 UTC) #11
iannucci
ptal https://codereview.chromium.org/1270113002/diff/100001/service/datastore/properties.go File service/datastore/properties.go (right): https://codereview.chromium.org/1270113002/diff/100001/service/datastore/properties.go#newcode227 service/datastore/properties.go:227: func UpconvertUnderlyingType(o interface{}, t reflect.Type) (interface{}, reflect.Type) { ...
5 years, 4 months ago (2015-08-05 00:58:15 UTC) #12
dnj
Missing patch set?
5 years, 4 months ago (2015-08-05 00:59:47 UTC) #13
iannucci
On 2015/08/05 00:59:47, dnj wrote: > Missing patch set? d'oh.. uploaded to the wrong cl. ...
5 years, 4 months ago (2015-08-05 01:02:54 UTC) #14
dnj (Google)
lgtm
5 years, 4 months ago (2015-08-05 01:23:31 UTC) #16
iannucci
5 years, 4 months ago (2015-08-05 01:24:06 UTC) #17
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as
00d1a80545d14379fbe4b851ff638f7e9be85e84 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698