-
Notifications
You must be signed in to change notification settings - Fork 2
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: add next_log_created_at to analytics_log to allow time tracking per card #2314
Conversation
On this point I don't think it's necessarily a problem that we still create records for components which the user doesn't actually see and in these cases the I do wonder whether it would be worth adding an |
…ecord on next_log_created_at - Add next_log_created_at column to analytics_log - Update permissions to allow created_at to be read via graphql select - On component transition when an analytics log is created store the created at - Update the last log with this value - Should allow us to infer the time spent per card in a single session
97800c6
to
d174255
Compare
🤖 Hasura Change Summary compared a subset of table metadata including permissions: Updated Tables (1)
|
Removed vultr server and associated DNS entries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good 👌 I think we covered most of this yesterday - nothing more to add!
What:
analytics_log
record is created.created_at
of this againstnewLogCreatedAt
lastAnalyticsLog
to mutate the last log with the newnewLogCreatedAt
stored against the newnext_log_created_at
column.Why:
created_at
andnext_log_created_at
to have a number for how long was take on the card in the context of a user in a session."resume"
later kicking off a new session.Rationale:
Is this a logical way to store this information
Is it actually representative of how long was spent on a card
How do we handle auto answer questions which create instances of
analytics_logs
but aren't even shown to the user.Screen Recording:
Screen.Recording.2023-10-17.at.15.01.17.mov