Skip to content

Add session duration to analytics#6194

Merged
stevegsa merged 3 commits intomainfrom
stevegsa-session-duration
Apr 13, 2022
Merged

Add session duration to analytics#6194
stevegsa merged 3 commits intomainfrom
stevegsa-session-duration

Conversation

@stevegsa
Copy link
Contributor

@stevegsa stevegsa commented Apr 12, 2022

Why: This will allow us to track average times to various steps in cloudwatch vs db and eventually get rid of registration_logs, funnel step times, etc.

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +131 to +132
return value unless value.is_a?(String)
Time.zone.parse(value)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd consider doing this as a positive check, instead of a negative check

Suggested change
return value unless value.is_a?(String)
Time.zone.parse(value)
value.kind_of?(String) : Time.zone.parse(value) : value

@stevegsa stevegsa merged commit 98dd970 into main Apr 13, 2022
@stevegsa stevegsa deleted the stevegsa-session-duration branch April 13, 2022 05:31
@stevegsa stevegsa mentioned this pull request Oct 7, 2022
3 tasks
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.

2 participants