Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

provide minorversion label on AppEngine#237

Merged
ofrobots merged 1 commit intogoogleapis:masterfrom
ofrobots:fake-minor-version
Feb 8, 2017
Merged

provide minorversion label on AppEngine#237
ofrobots merged 1 commit intogoogleapis:masterfrom
ofrobots:fake-minor-version

Conversation

@ofrobots
Copy link
Copy Markdown
Contributor

@ofrobots ofrobots commented Feb 7, 2017

AppEngine flex no longer provides the GAE_MINOR_VERSION environment variable, but the debug UI depends upon it. Provide a fake value, but only on flex.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 7, 2017
Copy link
Copy Markdown
Contributor

@cristiancavalli cristiancavalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a quick couple questions:

var debuglet = new Debuglet(debug, defaultConfig);
assert.ok(debuglet.config_);
assert.ok(debuglet.config_.serviceContext);
assert.ok(!debuglet.config_.serviceContext.minorVersion);

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.


it('should provide minorversion upon registration if on flex', function(
done) {
process.env.GAE_SERVICE = 'fake-service';

This comment was marked as spam.

This comment was marked as spam.

{projectId: 'fake-project', credentials: fakeCredentials});
var debuglet = new Debuglet(debug, defaultConfig);

var scope = nock(API).post(REGISTER_PATH, function(body) {

This comment was marked as spam.

This comment was marked as spam.

}

if (_.isString(serviceContext.minorVersion)) {
// v--- intentional lowercase

This comment was marked as spam.

This comment was marked as spam.


it('should conjure a fake minor version when running on flex',
function() {
process.env.GAE_SERVICE = 'fake-gae-service';

This comment was marked as spam.

This comment was marked as spam.

Copy link
Copy Markdown
Contributor

@matthewloring matthewloring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM assuming you have verified that this addresses the warning message that was displayed.

@ofrobots
Copy link
Copy Markdown
Contributor Author

ofrobots commented Feb 8, 2017

The fix seems to be working.

@ofrobots ofrobots merged commit f651b8e into googleapis:master Feb 8, 2017
@ofrobots ofrobots deleted the fake-minor-version branch February 8, 2017 00:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants