New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DAEMON-241] Fix telemetry guid and add deployType to events #291
Conversation
docs/Getting-Started.md
Outdated
@@ -159,6 +159,8 @@ will rebuild that package and all parent packages, then restart the Appc Daemon. | |||
> malformed JavaScript code, it's likely going to cause `gulp` to exit, but the last spawned Appc | |||
> Daemon process will remain running. You may need to run `appcd stop` or `killall appcd`. | |||
|
|||
When running the Appc Daemon with the `gulp watch` task telemetry will be sent using the `development` deployType. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrap at 100 chars.
gulpfile.js
Outdated
@@ -277,7 +277,7 @@ function runTests(cover, cb) { | |||
* watch/debug tasks | |||
*/ | |||
function startDaemon() { | |||
spawn(process.execPath, [ 'packages/appcd/bin/appcd', 'start', '--debug' ], { stdio: 'inherit' }); | |||
spawn(process.execPath, [ 'packages/appcd/bin/appcd', 'start', '--debug', '--config', '{ \"telemetry\": { \"deployType\": \"development\" } }' ], { stdio: 'inherit' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/deployType/environment/
packages/appcd-core/conf/default.js
Outdated
* Deploy type for the analytics events. | ||
* @type {String} | ||
*/ | ||
deployType: 'production', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/deployType/environment/
* The deploy type for the events. | ||
* @type {String} | ||
*/ | ||
this.deployType = cfg.get('telemetry.deployType') || 'production'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.deployType = cfg.get('telemetry.environment') || 'production';
packages/appcd-core/conf/default.js
Outdated
@@ -1,4 +1,8 @@ | |||
module.exports = { | |||
environment: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alphabetical order please.
Rename deployType to environment, wrap line
@cb1kenobi Updated |
https://jira.appcelerator.org/browse/DAEMON-241