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

Issue 1414043006: Allow metadata fields to be PropertyConverters for symmetry. (Closed)

Created:
5 years, 1 month ago by iannucci
Modified:
5 years, 1 month ago
Reviewers:
dnj
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

Allow metadata fields to be PropertyConverters for symmetry. This makes the easiest forms of parsed kinds/ids extremely simple to implement, as well as composable. The MetaGetterSetter interface requires every top-level struct to implement it, since allowing embedded implementations will get the wrong value for the derived "$kind". R=dnj@chromium.org BUG= Committed: https://github.com/luci/gae/commit/086748cd03c7bfc319eac9ab266764a219a68f37

Patch Set 1 #

Total comments: 9

Patch Set 2 : docs #

Patch Set 3 : fix nits #

Total comments: 4

Patch Set 4 : fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -24 lines) Patch
M service/datastore/pls.go View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
M service/datastore/pls_impl.go View 1 2 3 7 chunks +41 lines, -24 lines 0 comments Download
M service/datastore/pls_test.go View 2 chunks +49 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
iannucci
5 years, 1 month ago (2015-11-03 01:02:58 UTC) #1
dnj
Looks reasonable. https://chromiumcodereview.appspot.com/1414043006/diff/1/service/datastore/pls_impl.go File service/datastore/pls_impl.go (right): https://chromiumcodereview.appspot.com/1414043006/diff/1/service/datastore/pls_impl.go#newcode317 service/datastore/pls_impl.go:317: if err == nil { nit: Handle ...
5 years, 1 month ago (2015-11-03 01:18:10 UTC) #2
iannucci
ptal https://chromiumcodereview.appspot.com/1414043006/diff/1/service/datastore/pls_impl.go File service/datastore/pls_impl.go (right): https://chromiumcodereview.appspot.com/1414043006/diff/1/service/datastore/pls_impl.go#newcode337 service/datastore/pls_impl.go:337: val, err := p.getMetaFor(idx) On 2015/11/03 at 01:18:10, ...
5 years, 1 month ago (2015-11-03 01:29:13 UTC) #3
iannucci
sigh... ptal now that I actually uploaded the patchset :p
5 years, 1 month ago (2015-11-03 02:10:55 UTC) #4
dnj
lgtm https://chromiumcodereview.appspot.com/1414043006/diff/1/service/datastore/pls_impl.go File service/datastore/pls_impl.go (right): https://chromiumcodereview.appspot.com/1414043006/diff/1/service/datastore/pls_impl.go#newcode337 service/datastore/pls_impl.go:337: val, err := p.getMetaFor(idx) On 2015/11/03 01:29:12, iannucci ...
5 years, 1 month ago (2015-11-03 03:11:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414043006/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414043006/50001
5 years, 1 month ago (2015-11-03 20:29:03 UTC) #8
iannucci
https://chromiumcodereview.appspot.com/1414043006/diff/1/service/datastore/pls_impl.go File service/datastore/pls_impl.go (right): https://chromiumcodereview.appspot.com/1414043006/diff/1/service/datastore/pls_impl.go#newcode337 service/datastore/pls_impl.go:337: val, err := p.getMetaFor(idx) On 2015/11/03 at 03:11:25, dnj ...
5 years, 1 month ago (2015-11-03 20:29:33 UTC) #9
commit-bot: I haz the power
5 years, 1 month ago (2015-11-03 20:30:35 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:50001) as
https://github.com/luci/gae/commit/086748cd03c7bfc319eac9ab266764a219a68f37

Powered by Google App Engine
This is Rietveld 408576698