Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

RVM-906: Rvm Core Analytics Pipeline #925

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

arjun2k15
Copy link

@arjun2k15 arjun2k15 commented Sep 9, 2019

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

  • PR description included and stakeholders cc'd
  • npm test passes
  • automated tests are changed or added
  • manual tests are changed or added
  • relevant documentation is changed or added
  • PR title starts with the JIRA ticket pull request process
  • PR release notes describe the change in a way relevant to app-developers
  • Link to new tests added
  • PR has assigned reviewers

Release Notes

Notes:

@openfin-github-bot
Copy link

Test Results for 588fef5

@openfin-github-bot openfin-github-bot bot added auto testing done Bot completed automated testing and removed auto testing started Bot started automated testing labels Sep 9, 2019
const rvmMsg: CoreAnalytics = {
topic: 'system',
action: 'send-core-analytics-event',
sourceUrl: '',
Copy link
Member

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?

Copy link
Author

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.

@openfin-github-bot openfin-github-bot bot added auto testing started Bot started automated testing and removed auto testing done Bot completed automated testing labels Sep 23, 2019
@openfin-github-bot
Copy link

638b966

Git

  • core: develop <= rvm-core-analytics (638b966)
  • js-adapter: develop
  • javascript-adapter: develop

Asars used for testing

Test results

@openfin-github-bot openfin-github-bot bot added auto testing done Bot completed automated testing and removed auto testing started Bot started automated testing labels Sep 23, 2019
@@ -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';
Copy link
Contributor

Choose a reason for hiding this comment

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

:neckbeard: 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> {
Copy link
Contributor

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?

@datamadic
Copy link
Contributor

I'm OK with this for now, lets perhaps revisit when you guys flesh out the usage

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto testing done Bot completed automated testing cla-present
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants