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

Issue 1286943002: impl/memory: Make queries self-validate (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@add_datastore_testable
Target Ref:
refs/heads/master
Visibility:
Public.

Description

impl/memory: Make queries self-validate This moves validation and normalization logic into the query construction process itself. This makes it so that queries are either valid and normalized, or they contain an error (and query building 'sticks' on the first error encountered). This replaces the previous build-a-questionable-query-and-then-try-to-make-it-sensible logic (which was copied from dev_appserver for the most part). R=dnj@google.com, dnj@chromium.org, estaab@chromium.org, tandrii@chromium.org, vadimsh@chromium.org BUG= Committed: https://github.com/luci/gae/commit/9f570ae76af2ec00cbc915f8c2200d5339607273

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : add doc #

Total comments: 20

Patch Set 4 : rebase #

Patch Set 5 : fix nits #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+586 lines, -456 lines) Patch
M impl/memory/datastore.go View 2 chunks +9 lines, -3 lines 0 comments Download
M impl/memory/datastore_index.go View 1 chunk +3 lines, -0 lines 0 comments Download
M impl/memory/datastore_query.go View 1 2 3 4 6 chunks +391 lines, -294 lines 0 comments Download
A impl/memory/datastore_query_test.go View 1 2 3 1 chunk +183 lines, -0 lines 0 comments Download
M impl/memory/datastore_test.go View 1 2 3 4 5 2 chunks +0 lines, -158 lines 0 comments Download
M service/datastore/errors.go View 1 chunk +0 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 6 (1 generated)
iannucci
5 years, 4 months ago (2015-08-12 02:53:32 UTC) #1
dnj (Google)
https://codereview.chromium.org/1286943002/diff/40001/impl/memory/datastore.go File impl/memory/datastore.go (right): https://codereview.chromium.org/1286943002/diff/40001/impl/memory/datastore.go#newcode73 impl/memory/datastore.go:73: if done || err != nil { What's the ...
5 years, 4 months ago (2015-08-14 21:01:35 UTC) #3
iannucci
done https://chromiumcodereview.appspot.com/1286943002/diff/40001/impl/memory/datastore.go File impl/memory/datastore.go (right): https://chromiumcodereview.appspot.com/1286943002/diff/40001/impl/memory/datastore.go#newcode73 impl/memory/datastore.go:73: if done || err != nil { On ...
5 years, 4 months ago (2015-08-14 22:25:48 UTC) #4
dnj (Google)
lgtm https://chromiumcodereview.appspot.com/1286943002/diff/40001/impl/memory/datastore.go File impl/memory/datastore.go (right): https://chromiumcodereview.appspot.com/1286943002/diff/40001/impl/memory/datastore.go#newcode73 impl/memory/datastore.go:73: if done || err != nil { On ...
5 years, 4 months ago (2015-08-14 22:58:13 UTC) #5
iannucci
5 years, 4 months ago (2015-08-15 21:53:23 UTC) #6
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
9f570ae76af2ec00cbc915f8c2200d5339607273 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698