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

Issue 1285703002: Add testable interface for datastore. (Closed)

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

Description

Add testable interface for datastore. Includes the ability to manipulate the 'eventual consistency' state of the datastore, as well as the ability to add compound indicies. R=dnj@google.com, dnj@chromium.org, estaab@chromium.org, tandrii@chromium.org, vadimsh@chromium.org BUG= Committed: https://github.com/luci/gae/commit/f9c08d41e48e4eceea0b45bf963d3e8eeaf05eb4

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 11

Patch Set 3 : fix comments #

Patch Set 4 : fixes after Raw change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+586 lines, -266 lines) Patch
M doc.go View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M filter/count/rds.go View 1 chunk +4 lines, -0 lines 0 comments Download
M impl/dummy/dummy.go View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M impl/memory/datastore.go View 4 chunks +39 lines, -6 lines 0 comments Download
M impl/memory/datastore_data.go View 2 chunks +31 lines, -3 lines 0 comments Download
M impl/memory/datastore_index.go View 12 chunks +66 lines, -34 lines 0 comments Download
M impl/memory/datastore_index_test.go View 9 chunks +20 lines, -20 lines 0 comments Download
M impl/memory/datastore_query.go View 16 chunks +33 lines, -179 lines 0 comments Download
M impl/memory/datastore_test.go View 1 2 3 4 chunks +61 lines, -4 lines 0 comments Download
M impl/memory/taskqueue_test.go View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download
M impl/memory/testing_utils_test.go View 2 chunks +7 lines, -7 lines 0 comments Download
M impl/prod/raw_datastore.go View 1 chunk +4 lines, -0 lines 0 comments Download
A service/datastore/index.go View 1 chunk +89 lines, -0 lines 0 comments Download
A service/datastore/index_test.go View 1 chunk +92 lines, -0 lines 0 comments Download
M service/datastore/raw_interface.go View 1 chunk +4 lines, -0 lines 0 comments Download
M service/datastore/serialize.go View 1 2 2 chunks +88 lines, -0 lines 0 comments Download
A service/datastore/testable.go View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
M service/taskqueue/interface.go View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (1 generated)
iannucci
5 years, 4 months ago (2015-08-10 21:42:49 UTC) #1
iannucci
On 2015/08/10 21:42:49, iannucci wrote: PTAL, this is rebased and ready to rock
5 years, 4 months ago (2015-08-14 19:54:48 UTC) #2
iannucci
On 2015/08/14 19:54:48, iannucci wrote: > On 2015/08/10 21:42:49, iannucci wrote: > > PTAL, this ...
5 years, 4 months ago (2015-08-14 22:06:38 UTC) #3
dnj (Google)
Looks mostly good. Few comments/questions. https://codereview.chromium.org/1285703002/diff/20001/impl/dummy/dummy.go File impl/dummy/dummy.go (right): https://codereview.chromium.org/1285703002/diff/20001/impl/dummy/dummy.go#newcode83 impl/dummy/dummy.go:83: func (ds) Testable() datastore.Testable ...
5 years, 4 months ago (2015-08-14 22:53:55 UTC) #5
iannucci
done https://chromiumcodereview.appspot.com/1285703002/diff/20001/impl/dummy/dummy.go File impl/dummy/dummy.go (right): https://chromiumcodereview.appspot.com/1285703002/diff/20001/impl/dummy/dummy.go#newcode83 impl/dummy/dummy.go:83: func (ds) Testable() datastore.Testable { panic(ni()) } On ...
5 years, 4 months ago (2015-08-15 01:59:25 UTC) #6
dnj (Google)
https://chromiumcodereview.appspot.com/1285703002/diff/20001/service/datastore/interface.go File service/datastore/interface.go (right): https://chromiumcodereview.appspot.com/1285703002/diff/20001/service/datastore/interface.go#newcode146 service/datastore/interface.go:146: Testable() Testable On 2015/08/15 01:59:25, iannucci wrote: > On ...
5 years, 4 months ago (2015-08-15 02:07:53 UTC) #7
iannucci
On 2015/08/15 02:07:53, dnj (Google) wrote: > https://chromiumcodereview.appspot.com/1285703002/diff/20001/service/datastore/interface.go > File service/datastore/interface.go (right): > > https://chromiumcodereview.appspot.com/1285703002/diff/20001/service/datastore/interface.go#newcode146 ...
5 years, 4 months ago (2015-08-15 02:18:27 UTC) #8
iannucci
On 2015/08/15 02:18:27, iannucci wrote: > On 2015/08/15 02:07:53, dnj (Google) wrote: > > > ...
5 years, 4 months ago (2015-08-15 02:19:10 UTC) #9
dnj (Google)
On 2015/08/15 02:18:27, iannucci wrote: > On 2015/08/15 02:07:53, dnj (Google) wrote: > > > ...
5 years, 4 months ago (2015-08-15 02:29:48 UTC) #10
iannucci
On 2015/08/15 02:29:48, dnj (Google) wrote: > On 2015/08/15 02:18:27, iannucci wrote: > > On ...
5 years, 4 months ago (2015-08-15 16:12:58 UTC) #11
iannucci
On 2015/08/15 16:12:58, iannucci wrote: > On 2015/08/15 02:29:48, dnj (Google) wrote: > > On ...
5 years, 4 months ago (2015-08-15 16:16:42 UTC) #12
iannucci
On 2015/08/15 16:16:42, iannucci wrote: > On 2015/08/15 16:12:58, iannucci wrote: > > On 2015/08/15 ...
5 years, 4 months ago (2015-08-15 16:19:12 UTC) #13
dnj (Google)
> > The other issue is that I didn't want to include all the testing ...
5 years, 4 months ago (2015-08-15 19:01:15 UTC) #14
iannucci
Yeah OK that makes sense. We can burn that bridge when we get to it ...
5 years, 4 months ago (2015-08-15 19:41:33 UTC) #15
dnj (Google)
Sounds good, lgtm!
5 years, 4 months ago (2015-08-15 19:44:58 UTC) #16
iannucci
5 years, 4 months ago (2015-08-15 21:52:39 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
f9c08d41e48e4eceea0b45bf963d3e8eeaf05eb4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698