Skip to content
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

fix(app): add robot serial number to BuildrootAnalyticsData #15000

Merged
merged 4 commits into from
Apr 25, 2024

Conversation

koji
Copy link
Contributor

@koji koji commented Apr 24, 2024

Overview

add robot serial number to BuildrootAnalyticsData and modify the condition to send existing data.
If robot is not null, sending currentSystem, currnetVersion, and robotSerialNumber would be good even if updateVersion is null since those properties are reflected the current user's robot situation.

close RQA-2386

Test Plan

  • make -C app dev OT_APP_MIXPANEL_ID=project_token
    project_token can be found in Project Settings page
  • update robot system from robot settings page

Changelog

Review requests

Risk assessment

@koji koji requested review from shlokamin and jerader April 24, 2024 20:20
@@ -32,16 +32,20 @@ export function getBuildrootAnalyticsData(
? getRobotUpdateRobot(state)
: getViewableRobots(state).find(r => r.name === robotName) ?? null

if (updateVersion === null || robot === null) return null
Copy link
Contributor Author

Choose a reason for hiding this comment

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

updateVersion === null is causing the following issue.
The app sends events that are related to robotUpdate but most cases cannot send data(currentVersion, currentSystem, updateVersion).

Screenshot 2024-04-24 at 4 21 29 PM

Screenshot 2024-04-24 at 4 22 17 PM

Copy link
Contributor

@mjhuff mjhuff Apr 25, 2024

Choose a reason for hiding this comment

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

Yeah, the way you're handling this seems better!

@koji koji marked this pull request as ready for review April 24, 2024 20:26
@koji koji requested a review from a team as a code owner April 24, 2024 20:26
@koji koji removed the request for review from a team April 24, 2024 21:32
Copy link
Contributor

@mjhuff mjhuff left a comment

Choose a reason for hiding this comment

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

One nit that's your discretion. This makes sense to me. Thank you!

app/src/redux/analytics/constants.ts Outdated Show resolved Hide resolved
@koji koji requested a review from a team as a code owner April 25, 2024 12:44
@koji koji merged commit ee6e9fe into edge Apr 25, 2024
20 checks passed
@koji koji deleted the fix_mixpanel-robot-serial-number-missing-cases branch April 25, 2024 13:20
Carlos-fernandez pushed a commit that referenced this pull request May 20, 2024
* fix(app): add robot serial number to BuildrootAnalyticsData
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants