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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish Part 2 of the machine ID v3 work #3216

Merged
merged 3 commits into from
May 5, 2021
Merged

Conversation

tvst
Copy link
Contributor

@tvst tvst commented May 4, 2021

History

  • Part 2 of the machine ID v3 work was implemented in this PR

  • The PR changed our Python code so we now calculate machine_id_v3
    Great! 馃槂

  • ...but the PR did not touch the JS side! 鈽癸笍
    Meaning, we never send the new ID to Segment in any way.

    See MetricsManager.ts and SessionInfo.ts. There are no mentions of MachineIdV3 in those.

This PR

This PR finishes piping MachineIdV3 to Segment. So what we send to Segment is this:

  • machine_id_v1: this is the old MAC-address-based ID with annoying sudo step. This will go away in Part 3.
  • machine_id_v2: this is the old random-number-based ID. This will go away in Part 3.
  • ADDED: machine_id_v3: the new MAC-address-based ID without sudo. This will go away in Part 3.
  • ADDED: user_id: the new MAC-address-based ID without sudo

Double-checking...

To make sure I was sending out the right things to Segment, I temporarily prepended "stidv1-", "stidv2-" and "stidv3-" to the three IDs and watched what MetricsManager.ts logged to the console:

Screen Shot 2021-05-04 at 4 34 57 PM

Looks right!

@tvst tvst requested review from AnOctopus and a team May 4, 2021 23:48
@tvst tvst merged commit 80b8d71 into streamlit:develop May 5, 2021
@tvst tvst deleted the useridv3-step2 branch May 5, 2021 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants