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

fix precedence for where the projectId is acquired from #193

Merged
merged 4 commits into from
Dec 16, 2016

Conversation

ofrobots
Copy link
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 15, 2016
@ofrobots
Copy link
Contributor Author

apologies for some of the formatting/indentation changes.

@@ -132,13 +135,14 @@ Controller.prototype.register_ = function(errorMessage, callback) {
uri: API + '/debuggees/register',
method: 'POST',
json: true,
body: { debuggee: debuggee }
body: {debuggee: debuggee}

This comment was marked as spam.

// We should get an error if we are not on GCP.
that.onGCP = !err;

// We perfer to use the locally available projectId as that is least

This comment was marked as spam.

This comment was marked as spam.

Copy link
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.

Initial scan looks good with a couple questions

var Debuglet = require('../../src/agent/debuglet.js');
var extend = require('extend');

This comment was marked as spam.

This comment was marked as spam.

@@ -44,25 +43,26 @@ var errorBp = {
location: { path: 'fixtures/foo.js', line: 2 }
};
var fakeDebug = {
request: request
request: request // avoid authing.

This comment was marked as spam.

This comment was marked as spam.

projectId: 'project-via-config',
credentials: require('../fixtures/gcloud-credentials.json')
});
var debug = require('../../')(config);

This comment was marked as spam.


describe('test-config-credentials', function() {
var debuglet = null;
var envProject = process.env.GCLOUD_PROJECT;

This comment was marked as spam.

@ofrobots ofrobots added the semver: major Hint for users that this is an API breaking change. label Dec 16, 2016
@ofrobots ofrobots merged commit f7de637 into googleapis:master Dec 16, 2016
@ofrobots ofrobots deleted the project-id-precedence branch December 16, 2016 00:58
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. semver: major Hint for users that this is an API breaking change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants