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

Issue 2048933004: Refactor multiarg, split MGS/PLS. (Closed)

Created:
4 years, 6 months ago by dnj
Modified:
4 years, 5 months ago
Reviewers:
dnj (Google), iannucci
CC:
chromium-reviews, infra-reviews+luci-gae_chromium.org
Base URL:
https://chromium.googlesource.com/external/github.com/luci/gae@master
Target Ref:
refs/heads/master
Project:
luci-gae
Visibility:
Public.

Description

Refactor multiarg, split MGS/PLS. Refactor the multiarg construction method to handle the various cases inline, rather than defining and invoking methods for specific scenarios. This enables PropertyLoadSaver-based methods to be handled separately from MetaGetterSetter-based methods, which, in turn, enables the two to be implemented independently. A bit of boilerplate is removed and the odd case of MGS/PLS Map/Chan fits better. Additionally, a few double-reflection code paths are optimized along the way. BUG=None Committed: https://github.com/luci/gae/commit/f11b1de0154fa1f3dc0f06ff77fba94949123326

Patch Set 1 #

Total comments: 8

Patch Set 2 : Update tests, comment cleanup. #

Patch Set 3 : Rebarse? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -251 lines) Patch
M service/datastore/datastore.go View 1 chunk +9 lines, -6 lines 0 comments Download
M service/datastore/datastore_test.go View 8 chunks +26 lines, -13 lines 0 comments Download
M service/datastore/interface.go View 1 10 chunks +35 lines, -35 lines 0 comments Download
M service/datastore/multiarg.go View 5 chunks +152 lines, -185 lines 0 comments Download
M service/datastore/pls.go View 1 1 chunk +19 lines, -7 lines 0 comments Download
M service/datastore/pls_impl.go View 3 chunks +9 lines, -4 lines 0 comments Download
M service/datastore/pls_test.go View 1 1 chunk +8 lines, -1 line 0 comments Download
M service/datastore/reflect.go View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
dnj (Google)
PTAL, same CL minus the non-pointer-to-struct part.
4 years, 6 months ago (2016-06-08 18:21:22 UTC) #2
dnj
(Ping, this actually fixes some bugs so it'd be good to land).
4 years, 6 months ago (2016-06-13 15:53:07 UTC) #3
iannucci
lgtm, this is good cleanup https://chromiumcodereview.appspot.com/2048933004/diff/1/service/datastore/interface.go File service/datastore/interface.go (right): https://chromiumcodereview.appspot.com/2048933004/diff/1/service/datastore/interface.go#newcode145 service/datastore/interface.go:145: // be non-nil, and ...
4 years, 6 months ago (2016-06-14 00:19:51 UTC) #4
dnj (Google)
https://chromiumcodereview.appspot.com/2048933004/diff/1/service/datastore/interface.go File service/datastore/interface.go (right): https://chromiumcodereview.appspot.com/2048933004/diff/1/service/datastore/interface.go#newcode145 service/datastore/interface.go:145: // be non-nil, and its underlying type must be ...
4 years, 6 months ago (2016-06-14 01:49:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2048933004/40001
4 years, 5 months ago (2016-07-01 01:42:24 UTC) #8
commit-bot: I haz the power
4 years, 5 months ago (2016-07-01 01:48:21 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://github.com/luci/gae/commit/f11b1de0154fa1f3dc0f06ff77fba94949123326

Powered by Google App Engine
This is Rietveld 408576698