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

Issue 2460473003: impl/prod: Make AEContext private. (Closed)

Created:
4 years, 1 month ago by dnj
Modified:
4 years, 1 month ago
Reviewers:
iannucci
CC:
chromium-reviews, infra-reviews+luci-gae_chromium.org
Target Ref:
refs/heads/master
Project:
luci-gae
Visibility:
Public.

Description

impl/prod: Make AEContext private. AEContext is confusing and magical, as is evidenced by #63, exposing impl/prod's internal structures and a lot of gritty and nuanced details about how it manages AppEngine SDK Contexts. Rather than direct users here, let's offer a clean break: users who want to interact with the Google AppEngine SDK directly must explicitly create their own Context for this using appengine.(Use|With)Context. Internally, this is very efficient, as AppEngine retains Contexts bound to requests in a map. With this patch the division is clearer: luci/gae will not help you access the raw AppEngine SDK, period. BUG=None TEST=local - `goapp test ./impl/prod` Committed: https://github.com/luci/gae/commit/31b3460980f3e048bb57f214952fb775aa21973f

Patch Set 1 #

Total comments: 1

Patch Set 2 : Update comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -17 lines) Patch
M impl/prod/context.go View 1 4 chunks +19 lines, -8 lines 0 comments Download
M impl/prod/context_vm.go View 1 chunk +3 lines, -0 lines 0 comments Download
M impl/prod/info.go View 1 chunk +2 lines, -2 lines 0 comments Download
M impl/prod/logger.go View 1 chunk +1 line, -1 line 0 comments Download
M impl/prod/mail.go View 1 chunk +1 line, -1 line 0 comments Download
M impl/prod/memcache.go View 1 chunk +1 line, -1 line 0 comments Download
M impl/prod/module.go View 1 chunk +1 line, -1 line 0 comments Download
M impl/prod/taskqueue.go View 1 chunk +1 line, -1 line 0 comments Download
M impl/prod/urlfetch.go View 1 chunk +1 line, -1 line 0 comments Download
M impl/prod/user.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
dnj
PTAL. I considered, as an alternative, always embedding the AEContext into the retained Contexts; however, ...
4 years, 1 month ago (2016-10-28 17:30:50 UTC) #2
iannucci
Commented on other CL as well https://codereview.chromium.org/2460473003/diff/1/impl/prod/context.go File impl/prod/context.go (right): https://codereview.chromium.org/2460473003/diff/1/impl/prod/context.go#newcode75 impl/prod/context.go:75: // SDK must ...
4 years, 1 month ago (2016-10-28 18:40:16 UTC) #3
dnj
Let's go with this. I've updated the comment.
4 years, 1 month ago (2016-10-31 16:44:04 UTC) #4
iannucci
Yeah, lgtm. I think we should probably also implement the rest of the SDK services ...
4 years, 1 month ago (2016-11-02 02:06:15 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/2460473003/20001
4 years, 1 month ago (2016-11-02 02:06:27 UTC) #7
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 02:09:46 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://github.com/luci/gae/commit/31b3460980f3e048bb57f214952fb775aa21973f

Powered by Google App Engine
This is Rietveld 408576698