-
Notifications
You must be signed in to change notification settings - Fork 50
RVM-906: Rvm Core Analytics Pipeline #925
base: develop
Are you sure you want to change the base?
Conversation
Test Results for 588fef5
|
src/browser/rvm/rvm_message_bus.ts
Outdated
const rvmMsg: CoreAnalytics = { | ||
topic: 'system', | ||
action: 'send-core-analytics-event', | ||
sourceUrl: '', |
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.
I could see a world where we would want to tie analytics to a specific application, how would you recommend we handle that?
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.
Not sure the best solution, but I think we could pass an optional Identity param.
Git
Asars used for testingTest results
|
@@ -173,13 +174,27 @@ export interface Cleanup extends RvmMsgBase { | |||
// topic: system ----- | |||
type systemTopic = 'system'; | |||
type getRvmInfoAction = 'get-rvm-info'; | |||
type sendCoreAnalyticsEvent = 'send-core-analytics-event'; |
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 is the same name as the function, not sure if that was intentional
@@ -415,6 +430,35 @@ export class RVMMessageBus extends EventEmitter { | |||
}; | |||
this.publish(rvmPayload, callback); | |||
} | |||
|
|||
public sendCoreAnalyticsEvent(event: string, payload: any, identity?: Identity): Promise<boolean> { |
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.
We don't actually use this yet, are there plans to use it soon?
I'm OK with this for now, lets perhaps revisit when you guys flesh out the usage |
Description of Change
Added a member function to the rvmBus that communicates with the RVM analytics pipeline. Not being used for anything at the moment, but able to be leveraged.
Checklist
npm test
passesRelease Notes
Notes: