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

Add a new crypto session state event #103

Merged
merged 3 commits into from
May 6, 2024

Conversation

BillCarsonFr
Copy link
Member

@BillCarsonFr BillCarsonFr commented May 6, 2024

Add a new CryptoSessionState to get information on Verification And recovery state.

The same propeties are also added as UserProperties.
Adding as UserProperties will allow to have the current state of a user, as the new values will overwrite the previous one (posthog $set -will replace any value that may have been set on a person for a specific property-)

We also keep an event CryptoSessionState that records the historical values (could allow to know the average time to get from unverified to verified, or to check when the state is reverted).

For the UserProperty to work as expected, different devices should not report to the same posthog User. So it depends how platforms are identifyign users

@BillCarsonFr BillCarsonFr requested a review from a team as a code owner May 6, 2024 10:40
Copy link
Collaborator

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

A few remarks, but nothing blocking.

@@ -59,6 +59,21 @@
{"const": "Group", "description": "Modern layout."},
{"const": "Compact", "description": "Modern layout with compact option enabled."}
]
},
"verificationState": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a description please? Can be copy paste of what's in CryptoSessionState.json.

]
},
"recoveryState": {
"type": "string",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a description please? Can be copy paste of what's in CryptoSessionState.json.

},
"required": ["eventName","verificationState", "recoveryState"],
"additionalProperties": false
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

So IIUC, this Event will be used for state change, so maybe rename to something like CryptoSessionStateChange (not sure what's best)?

@BillCarsonFr BillCarsonFr requested a review from bmarty May 6, 2024 14:27
@BillCarsonFr BillCarsonFr merged commit f10d044 into main May 6, 2024
3 checks passed
@BillCarsonFr BillCarsonFr deleted the valere/crypto_session_status branch May 6, 2024 14:27
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