From b24f6db050d19d7be4f29f5bd20e65e278be5e3b Mon Sep 17 00:00:00 2001 From: Robert Raposa Date: Tue, 5 Mar 2019 01:37:00 -0500 Subject: [PATCH] Temporary rename to edx.bi.profile.viewed. --- src/components/ProfilePage.jsx | 5 +++-- src/components/ProfilePage.test.jsx | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/ProfilePage.jsx b/src/components/ProfilePage.jsx index 96262af..e6a65cd 100644 --- a/src/components/ProfilePage.jsx +++ b/src/components/ProfilePage.jsx @@ -42,8 +42,9 @@ export class ProfilePage extends React.Component { componentDidMount() { this.props.fetchProfile(this.props.match.params.username); - logEvent('edx.profile.viewed', { - profileUsername: this.props.match.params.username, + // TODO: Rename 'edx.bi.profile.viewed' when the event is finalized + logEvent('edx.bi.profile.viewed', { + username: this.props.match.params.username, }); } diff --git a/src/components/ProfilePage.test.jsx b/src/components/ProfilePage.test.jsx index c7ed1bf..9f98725 100644 --- a/src/components/ProfilePage.test.jsx +++ b/src/components/ProfilePage.test.jsx @@ -39,9 +39,9 @@ describe('', () => { )); expect(analytics.logEvent.mock.calls.length).toBe(1); - expect(analytics.logEvent.mock.calls[0][0]).toEqual('edx.profile.viewed'); + expect(analytics.logEvent.mock.calls[0][0]).toEqual('edx.bi.profile.viewed'); expect(analytics.logEvent.mock.calls[0][1]).toEqual({ - profileUsername: 'test-username', + username: 'test-username', }); }); });