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

Issue 1916463004: impl/memory: Disallow empty namespace. (Closed)

Created:
4 years, 8 months ago by dnj
Modified:
4 years, 8 months ago
Reviewers:
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

impl/memory: datastore and memcache namespacing Update GetNamespace() to return an additional boolean, which will be true if the namespace was set and false if it was not. The AppEngine SDK defaults to having no namespace installed ("", false), but will allow the user to install any namespace. This allows a user to differentiate between no namespace and an empty namespace ("", true). Make impl/memory's datastore query operation to error if the namespace has been set to the empty namespace (""). This reflects observed production behavior. BUG= Committed: https://github.com/luci/gae/commit/76e946629e8d7f5e68963ff48fbaabe5ac2c2157

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove memcache. #

Total comments: 1

Patch Set 3 : Include bug name. #

Patch Set 4 : Rbase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -48 lines) Patch
M filter/count/gi.go View 1 1 chunk +1 line, -1 line 0 comments Download
M filter/dscache/context.go View 1 1 chunk +2 lines, -1 line 0 comments Download
M filter/txnBuf/state.go View 1 1 chunk +1 line, -1 line 0 comments Download
M impl/dummy/dummy.go View 1 1 chunk +1 line, -1 line 0 comments Download
M impl/memory/datastore.go View 1 2 10 chunks +46 lines, -11 lines 0 comments Download
M impl/memory/datastore_query_execution_test.go View 1 1 chunk +3 lines, -1 line 0 comments Download
M impl/memory/datastore_test.go View 1 2 chunks +79 lines, -1 line 0 comments Download
M impl/memory/info.go View 1 3 chunks +11 lines, -4 lines 0 comments Download
M impl/memory/memcache.go View 1 1 chunk +1 line, -1 line 0 comments Download
M impl/memory/memcache_test.go View 1 2 chunks +23 lines, -0 lines 0 comments Download
M impl/memory/taskqueue.go View 1 1 chunk +1 line, -1 line 0 comments Download
M impl/prod/context.go View 1 1 chunk +7 lines, -3 lines 0 comments Download
M impl/prod/info.go View 1 3 chunks +15 lines, -7 lines 0 comments Download
M impl/prod/raw_datastore.go View 1 3 chunks +2 lines, -6 lines 0 comments Download
M service/datastore/checkfilter.go View 1 1 chunk +2 lines, -1 line 0 comments Download
M service/datastore/context.go View 1 2 chunks +4 lines, -2 lines 0 comments Download
M service/datastore/context_test.go View 1 1 chunk +3 lines, -3 lines 0 comments Download
M service/datastore/datastore_test.go View 1 1 chunk +3 lines, -2 lines 0 comments Download
M service/info/interface.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (8 generated)
dnj
PTAL
4 years, 8 months ago (2016-04-22 19:02:23 UTC) #2
iannucci
lgtm (and I edited the description to use the correct github issue syntax) https://chromiumcodereview.appspot.com/1916463004/diff/1/impl/memory/datastore_query_execution_test.go File ...
4 years, 8 months ago (2016-04-22 19:13:49 UTC) #4
Vadim Sh.
wait, what? Code in luci-go does switches to empty namespace and it has worked fine... ...
4 years, 8 months ago (2016-04-22 19:31:23 UTC) #6
Vadim Sh.
On 2016/04/22 19:31:23, Vadim Sh. wrote: > wait, what? > > Code in luci-go does ...
4 years, 8 months ago (2016-04-22 19:36:18 UTC) #8
dnj
On 2016/04/22 19:36:18, Vadim Sh. wrote: > On 2016/04/22 19:31:23, Vadim Sh. wrote: > > ...
4 years, 8 months ago (2016-04-22 19:44:39 UTC) #9
dnj
Updated to now allow empty namespaces basically everywhere except datastore queries.
4 years, 8 months ago (2016-04-22 23:28:00 UTC) #11
iannucci
lgtm https://chromiumcodereview.appspot.com/1916463004/diff/20001/impl/memory/datastore.go File impl/memory/datastore.go (right): https://chromiumcodereview.appspot.com/1916463004/diff/20001/impl/memory/datastore.go#newcode255 impl/memory/datastore.go:255: // for queries. link to bug
4 years, 8 months ago (2016-04-23 19:19:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1916463004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1916463004/60001
4 years, 8 months ago (2016-04-24 06:29:58 UTC) #15
commit-bot: I haz the power
4 years, 8 months ago (2016-04-24 06:34:40 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://github.com/luci/gae/commit/76e946629e8d7f5e68963ff48fbaabe5ac2c2157

Powered by Google App Engine
This is Rietveld 408576698