Dev/greazer/telem updates#10631
Conversation
greazer
commented
Mar 17, 2020
- Add some additional telemetry to track gather use.
- Updated the header at the top of gathered notebooks and script to point to a survey.
* Send telemetry when gather isn't available
Remove unneeded metadata
| await this.ipynbProvider.createNew(contents); | ||
| const editor = await this.ipynbProvider.createNew(contents); | ||
| this.gatheredNotebookList.push(editor); | ||
| editor.saved(this.onSavedGatheredNotebook.bind(this)); |
There was a problem hiding this comment.
You could do this another way.
editor.saved returns an idisposable. So you could eliminate the need for saving the editors in the list. Something like so:
let disposable : IDisposable;
const handler = () => {
sendTelemetryEvent(Telemetry.GatherSaved);
if (disposable) {
disposable.dispose();
}
}
disposable = editor.saved(handler);
There was a problem hiding this comment.
Ah, nice. I figured there had to be a prettier way
Codecov Report
@@ Coverage Diff @@
## master #10631 +/- ##
==========================================
- Coverage 60.79% 60.62% -0.18%
==========================================
Files 579 583 +4
Lines 31403 31551 +148
Branches 4469 4487 +18
==========================================
+ Hits 19091 19127 +36
- Misses 11342 11450 +108
- Partials 970 974 +4
Continue to review full report at Codecov.
|
|
Kudos, SonarCloud Quality Gate passed!
|
|
Made suggested change by Rich before submitting. |
* master: Turning new debugger experiment on for all users and reload experiment for 20% of users (#10674) Disable blank issues (#10678) update mockito and minor test updates (#10671) Fix save on old editor (#10665) Job names were invalid (#10646) Telemetry updates (#10631) Remote session shutdownAll is killing all sessions (#10621)
* master: Turning new debugger experiment on for all users and reload experiment for 20% of users (#10674) Disable blank issues (#10678) update mockito and minor test updates (#10671) Fix save on old editor (#10665) Job names were invalid (#10646) Telemetry updates (#10631) Remote session shutdownAll is killing all sessions (#10621)