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

Issue 1259593005: Add 'user friendly' datastore API. (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@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add 'user friendly' datastore API. This is a thin veneer on top of datastore.RawInterface, and may be used with any filters, any backend, and it may be used interchangably and inderleved with datastore.RawInterface. In particular, this adds a convention for embedding keys inside of loadable/savable objects. R=vadimsh@chromium.org, dnj@chromium.org, estaab@chromium.org BUG= Committed: https://github.com/luci/gae/commit/bdbb12dd3adfde49f4c39a52f826fda31ba94cd2

Patch Set 1 #

Total comments: 16

Patch Set 2 : Some tests and docs. Still need more tests #

Patch Set 3 : all tests passing again #

Patch Set 4 : more direct type check #

Patch Set 5 : 100% coverage of new code #

Total comments: 3

Patch Set 6 : typo #

Total comments: 10

Patch Set 7 : Rebase on top of https://codereview.chromium.org/1270063002 #

Patch Set 8 : rebase #

Total comments: 21

Patch Set 9 : docs #

Patch Set 10 : more docs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2171 lines, -463 lines) Patch
M doc.go View 1 9 chunks +81 lines, -51 lines 0 comments Download
M filter/count/count_test.go View 1 2 3 4 5 6 4 chunks +16 lines, -38 lines 0 comments Download
M filter/count/rds.go View 1 2 3 4 5 6 7 3 chunks +5 lines, -5 lines 0 comments Download
M filter/featureBreaker/featurebreaker_test.go View 1 2 3 4 5 6 2 chunks +11 lines, -18 lines 0 comments Download
M filter/featureBreaker/rds.go View 1 2 3 4 5 6 3 chunks +9 lines, -9 lines 0 comments Download
M impl/dummy/dummy.go View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M impl/dummy/dummy_test.go View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M impl/memory/raw_datastore.go View 1 2 3 4 5 6 7 chunks +7 lines, -7 lines 0 comments Download
M impl/memory/raw_datastore_data.go View 1 2 3 4 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M impl/memory/raw_datastore_test.go View 1 2 3 4 5 6 7 9 chunks +160 lines, -209 lines 0 comments Download
M impl/prod/context.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M impl/prod/raw_datastore.go View 1 2 3 4 5 6 4 chunks +6 lines, -7 lines 0 comments Download
M service/datastore/checkfilter.go View 1 2 3 4 5 6 6 chunks +26 lines, -28 lines 0 comments Download
A service/datastore/checkfilter_test.go View 1 2 3 4 1 chunk +131 lines, -0 lines 0 comments Download
M service/datastore/context.go View 1 2 3 4 5 6 2 chunks +27 lines, -22 lines 0 comments Download
M service/datastore/context_test.go View 1 2 3 4 5 6 3 chunks +7 lines, -7 lines 0 comments Download
A service/datastore/datastore.go View 1 2 3 4 1 chunk +199 lines, -0 lines 0 comments Download
A service/datastore/datastore_test.go View 1 2 3 4 1 chunk +861 lines, -0 lines 0 comments Download
A service/datastore/interface.go View 1 2 3 4 5 6 7 8 9 1 chunk +150 lines, -0 lines 0 comments Download
A service/datastore/multiarg.go View 1 2 3 4 1 chunk +304 lines, -0 lines 0 comments Download
M service/datastore/pls.go View 1 2 3 4 5 6 7 8 1 chunk +92 lines, -10 lines 0 comments Download
M service/datastore/pls_impl.go View 1 2 3 4 5 6 3 chunks +12 lines, -2 lines 0 comments Download
M service/datastore/properties.go View 1 2 3 4 5 6 4 chunks +16 lines, -15 lines 0 comments Download
M service/datastore/raw_interface.go View 1 2 3 4 5 6 7 8 4 chunks +36 lines, -21 lines 0 comments Download
M service/datastore/reflect.go View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M service/datastore/types.go View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (1 generated)
iannucci
5 years, 4 months ago (2015-07-29 07:51:03 UTC) #1
Vadim Sh.
https://codereview.chromium.org/1259593005/diff/1/service/datastore/datastore.go File service/datastore/datastore.go (right): https://codereview.chromium.org/1259593005/diff/1/service/datastore/datastore.go#newcode69 service/datastore/datastore.go:69: err = innerErr are you sure you want to ...
5 years, 4 months ago (2015-07-29 16:21:43 UTC) #2
iannucci
On mobile, but I like the partial result (maybe SingleResult? QueryResult? Result?) Idea. I think ...
5 years, 4 months ago (2015-07-29 16:38:35 UTC) #3
iannucci
PTAL! https://chromiumcodereview.appspot.com/1259593005/diff/1/service/datastore/datastore.go File service/datastore/datastore.go (right): https://chromiumcodereview.appspot.com/1259593005/diff/1/service/datastore/datastore.go#newcode69 service/datastore/datastore.go:69: err = innerErr On 2015/07/29 16:21:43, Vadim Sh. ...
5 years, 4 months ago (2015-08-03 03:56:32 UTC) #4
iannucci
https://chromiumcodereview.appspot.com/1259593005/diff/80001/service/datastore/checkfilter_test.go File service/datastore/checkfilter_test.go (right): https://chromiumcodereview.appspot.com/1259593005/diff/80001/service/datastore/checkfilter_test.go#newcode21 service/datastore/checkfilter_test.go:21: func TestCheckFilter(t *testing.T) { this test probably should have ...
5 years, 4 months ago (2015-08-03 04:00:34 UTC) #5
dnj (Google)
Just some nits. Are there specific files that we should focus on for this review? ...
5 years, 4 months ago (2015-08-03 18:00:18 UTC) #7
iannucci
On 2015/08/03 18:00:18, dnj (Google) wrote: > Just some nits. Are there specific files that ...
5 years, 4 months ago (2015-08-03 18:07:59 UTC) #8
iannucci
OK, PTAL @ https://codereview.chromium.org/1270063002, which removes a bunch of diff noise from this CL.
5 years, 4 months ago (2015-08-03 20:21:17 UTC) #9
iannucci
Dependency for this is landed (thanks Vadim!), this one is ready I think.
5 years, 4 months ago (2015-08-03 21:05:06 UTC) #10
Vadim Sh.
various documentation nits https://codereview.chromium.org/1259593005/diff/140001/service/datastore/datastore.go File service/datastore/datastore.go (right): https://codereview.chromium.org/1259593005/diff/140001/service/datastore/datastore.go#newcode113 service/datastore/datastore.go:113: if !isOkType(reflect.TypeOf(src)) { so Put requires ...
5 years, 4 months ago (2015-08-03 21:25:13 UTC) #11
iannucci
https://chromiumcodereview.appspot.com/1259593005/diff/140001/service/datastore/datastore.go File service/datastore/datastore.go (right): https://chromiumcodereview.appspot.com/1259593005/diff/140001/service/datastore/datastore.go#newcode113 service/datastore/datastore.go:113: if !isOkType(reflect.TypeOf(src)) { On 2015/08/03 21:25:12, Vadim Sh. wrote: ...
5 years, 4 months ago (2015-08-03 21:51:48 UTC) #12
Vadim Sh.
https://codereview.chromium.org/1259593005/diff/140001/service/datastore/interface.go File service/datastore/interface.go (right): https://codereview.chromium.org/1259593005/diff/140001/service/datastore/interface.go#newcode112 service/datastore/interface.go:112: // - *P where *P is a concrete type ...
5 years, 4 months ago (2015-08-03 22:04:52 UTC) #13
iannucci
On 2015/08/03 22:04:52, Vadim Sh. wrote: > https://codereview.chromium.org/1259593005/diff/140001/service/datastore/interface.go > File service/datastore/interface.go (right): > > https://codereview.chromium.org/1259593005/diff/140001/service/datastore/interface.go#newcode112 ...
5 years, 4 months ago (2015-08-03 22:10:54 UTC) #14
Vadim Sh.
well, I don't know what else to nitpick, so lgtm
5 years, 4 months ago (2015-08-03 22:12:30 UTC) #15
iannucci
5 years, 4 months ago (2015-08-03 22:13:24 UTC) #16
Message was sent while issue was closed.
Committed patchset #10 (id:180001) manually as
bdbb12dd3adfde49f4c39a52f826fda31ba94cd2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698