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

feat(app): Add robot pipettes, versions, FFs to mixpanel and intercom #3059

Merged
merged 3 commits into from
Feb 19, 2019

Conversation

mcous
Copy link
Contributor

@mcous mcous commented Feb 15, 2019

overview

This PR adds data about the connected robot to certain analytics events as well as the user's Intercom support profile:

  • API version
  • Smoothie version
  • Left pipette model (already present in Intercom profile)
  • Right pipette model (already present in Intercom profile)
  • Robot feature flag settings

It submits this data to Intercom any time that data may change, and to MixPanel on:

  • Protocol upload request
  • Protocol upload success or error
  • Run start
  • Run finish

Closes #3009, closes #3010

changelog

  • feat(app): Add robot pipettes, versions, FFs to mixpanel and intercom

review requests

Without any environment variables set, you will see debug logs for the Mixpanel event (debug: Trackable event) and for the Intercom event (debug: Intercom update).

If you test with the production app, you should see these events go all the way to Mixpanel and Intercom. Make sure you're opted into analytics, and you can get your Mixpanel and Intercom user IDs from the app's config file (see app-shell README for config file location) under the analytics and support keys, respectively.

@mcous mcous added feature Ticket is a feature request / PR introduces a feature app Affects the `app` project ready for review labels Feb 15, 2019
@mcous mcous requested review from umbhau, Kadee80 and btmorr February 15, 2019 18:49
@codecov
Copy link

codecov bot commented Feb 15, 2019

Codecov Report

Merging #3059 into edge will decrease coverage by 0.05%.
The diff coverage is 20.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##             edge    #3059      +/-   ##
==========================================
- Coverage   53.58%   53.52%   -0.06%     
==========================================
  Files         678      678              
  Lines       19695    19718      +23     
==========================================
+ Hits        10553    10554       +1     
- Misses       9142     9164      +22
Impacted Files Coverage Δ
app/src/http-api-client/index.js 100% <ø> (ø) ⬆️
app/src/http-api-client/settings.js 100% <ø> (ø) ⬆️
app/src/analytics/make-event.js 86.95% <ø> (ø) ⬆️
app/src/analytics/index.js 0% <0%> (ø) ⬆️
app/src/support.js 0% <0%> (ø) ⬆️
app/src/http-api-client/pipettes.js 91.66% <100%> (ø) ⬆️
app/src/http-api-client/reducer.js 100% <100%> (ø) ⬆️
app/src/analytics/selectors.js 11.11% <9.09%> (-3.18%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 886bd68...f220434. Read the comment docs.

Copy link
Contributor

@Kadee80 Kadee80 left a comment

Choose a reason for hiding this comment

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

🌮 Tested on wandering-katie with mac build.

Can confirm in debug: Intercom update contained

  • API version
  • Smoothie version
  • Left pipette model (already present in Intercom profile)
  • Right pipette model (already present in Intercom profile)
  • Robot feature flag settings

Copy link
Contributor

@btmorr btmorr left a comment

Choose a reason for hiding this comment

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

🎀 Reviewed w/ @mcous , everything shows up correctly in Intercom and MixPanel (and doesn't show up if you have opted-out of analytics)

@codecov
Copy link

codecov bot commented Feb 19, 2019

Codecov Report

Merging #3059 into edge will decrease coverage by 0.05%.
The diff coverage is 20.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##             edge    #3059      +/-   ##
==========================================
- Coverage   53.58%   53.52%   -0.06%     
==========================================
  Files         678      678              
  Lines       19695    19718      +23     
==========================================
+ Hits        10553    10554       +1     
- Misses       9142     9164      +22
Impacted Files Coverage Δ
app/src/http-api-client/index.js 100% <ø> (ø) ⬆️
app/src/http-api-client/settings.js 100% <ø> (ø) ⬆️
app/src/analytics/make-event.js 86.95% <ø> (ø) ⬆️
app/src/analytics/index.js 0% <0%> (ø) ⬆️
app/src/support.js 0% <0%> (ø) ⬆️
app/src/http-api-client/pipettes.js 91.66% <100%> (ø) ⬆️
app/src/http-api-client/reducer.js 100% <100%> (ø) ⬆️
app/src/analytics/selectors.js 11.11% <9.09%> (-3.18%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 886bd68...f220434. Read the comment docs.

@mcous mcous merged commit de4a15f into edge Feb 19, 2019
@mcous mcous deleted the app_ff-analytics branch February 19, 2019 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app Affects the `app` project feature Ticket is a feature request / PR introduces a feature
Projects
None yet
3 participants