Skip to content
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

Merged
merged 4 commits into from Mar 9, 2018

Conversation

ewanharris
Copy link
Contributor

https://jira.appcelerator.org/browse/DAEMON-241

  • Remove prod and preprod confs, merging prod into default
  • Add deployType to events, setting to production if it doesn't exist
  • Make gulp watch set deployType to development

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

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' });
Copy link
Contributor

Choose a reason for hiding this comment

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

s/deployType/environment/

* Deploy type for the analytics events.
* @type {String}
*/
deployType: 'production',
Copy link
Contributor

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';
Copy link
Contributor

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';

@@ -1,4 +1,8 @@
module.exports = {
environment: {
Copy link
Contributor

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
@ewanharris
Copy link
Contributor Author

@cb1kenobi Updated

@cb1kenobi cb1kenobi merged commit a279bef into tidev:master Mar 9, 2018
@ewanharris ewanharris deleted the DAEMON-241 branch November 2, 2018 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants