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

Issue 2460803003: impl/prod: Embed AppEngine SDK into Context. (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: Embed AppEngine SDK into Context. Add the AppEngine SDK Context to the Context returned by the luci/gae Context. This has been confusing users, who believe that the returned luci/gae service Context is suitable for AppEngine SDK use. This includes the opportunity for some nasty mistakes if the users mix the two SDKs, so warning messages have been added to appropriate comments. Fixes #63. BUG=None TEST=local - `goapp test ./impl/prod`

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -78 lines) Patch
M impl/prod/context.go View 3 chunks +85 lines, -67 lines 4 comments Download
M impl/prod/context_vm.go View 1 chunk +6 lines, -2 lines 0 comments Download
M impl/prod/everything_test.go View 2 chunks +34 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: 4 (2 generated)
iannucci
https://codereview.chromium.org/2460803003/diff/1/impl/prod/context.go File impl/prod/context.go (right): https://codereview.chromium.org/2460803003/diff/1/impl/prod/context.go#newcode76 impl/prod/context.go:76: // CAUTIOUSLY and EXPERTLY. Some examples of pitfalls: as ...
4 years, 1 month ago (2016-10-28 18:40:05 UTC) #2
dnj
4 years, 1 month ago (2016-10-29 00:11:00 UTC) #3
https://codereview.chromium.org/2460803003/diff/1/impl/prod/context.go
File impl/prod/context.go (right):

https://codereview.chromium.org/2460803003/diff/1/impl/prod/context.go#newcode87
impl/prod/context.go:87: return setupAECtx(appengine.WithContext(c, r))
On 2016/10/28 18:40:05, iannucci wrote:
> why is setupAECtx still needed at all?

UseRemote still uses it.

Powered by Google App Engine
This is Rietveld 408576698