-
Notifications
You must be signed in to change notification settings - Fork 337
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
Telemetry #247
Telemetry #247
Conversation
b3f0bab
to
289619c
Compare
This code relies on the insight package: https://www.npmjs.com/package/insight I have a patch to fix this issue here: Use the patch to test this PR. |
2652b45
to
6f0c505
Compare
LGTM |
f24b513
to
0e3c6de
Compare
LGTM!! |
cfb2838
to
5f0f839
Compare
cordova-cli telemetry on | ||
cordova-cli telemetry off | ||
cordova-cli build --no-telemetry |
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.
These examples are not necessarily needed here as they are simple and not common scenarios - it will be nice to keep this output as small as it could be.
Related: apache/cordova-docs#599 |
@@ -21,7 +23,7 @@ Project Commands | |||
run ................................ Run project | |||
(including prepare && compile) | |||
serve .............................. Run project with a local webserver | |||
(including prepare) | |||
(including prepare) |
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.
Trailing spaces after (including prepare).
4676c01
to
f5133de
Compare
ping ... |
I have one question, maybe I missed it in discussion why is this implemented in CLI and not LIB I think it make more sense to implement in the top level of API entry points in LIB like create platform plugin etc. In LIB will be disable by default |
Other CLIs that use lib (as a lib) would not want this code. Off by default is interesting, but I think this is cleaner, and it's done.
|
@@ -5,6 +5,7 @@ Synopsis | |||
Global Commands | |||
create ............................. Create a project | |||
help ............................... Get help for a command | |||
telemetry .......................... Turn telemetry collection on or off |
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.
The CLI reference docs need an update.
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.
Hmm, I thought it was generated from these files. Anyway, it's been updated.
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.
They live in doc/readme.md.
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.
Yes, I've already updated it and pushed to this PR. thanks.
I first wanted to go that route, but I then realized doing it in CLI minimizes polluting LIB for a functionality that's not intended to be used by downstream tools. It seems cleaner to handle it here, as mentioned by @purplecabbage |
Sounds good to me to proceed then, it was a random idea |
bb1901e
to
f4e1298
Compare
LGTM |
Was there ever a specific Jira issue for adding telemetry? I don't see it.
Multiple overlapping lines, could be a bash issue as well. |
@omefire Can you please take a look into this? |
@purplecabbage, I didn't create a JIRA issue to track the telemetry work, I should have. It was an oversight on my part. My bad. I've tested this on MAC(El Capitan) and Windows10, but couldn't repro your issue. |
I am using windows 10, but I typically use the git-bash shell which may be @purplecabbage On Mon, May 16, 2016 at 10:52 AM, Omar Mefire notifications@github.com
|
@purplecabbage , I can't repro this with git-bash shell on Win10 because I'm running into another issue: nodejs/node#3006 The gist of my issue is that the process is not recognized to be running as TTY, which leads to insight ending the process and opting out: Furthermore, commenting that code out, leads to yet another error: SBoudrias/Inquirer.js#290 Insight, which we depend on doesn't play well with git-bash/MinGW. |
@purplecabbage , could you please file a JIRA issue for what you've encountered ? |
Here is the related proposal: apache/cordova-discuss#43