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

fix: expose the last activity timestamp in session id check result #1491

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

pauldambra
Copy link
Member

When you check the session id in posthog you get a bunch of useful information but not the last activity timestamp.

While working on an example of solving a problem in https://posthog.com/questions/post-to-slack-on-new-replay-in-playlist I had to reach into persistence manually to make it work.

Let's expose the useful information, since it's useful

Copy link

vercel bot commented Oct 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
posthog-js ✅ Ready (Inspect) Visit Preview Oct 23, 2024 2:34pm

Copy link

github-actions bot commented Oct 23, 2024

Size Change: +240 B (+0.01%)

Total Size: 2.89 MB

Filename Size Change
dist/array.full.es5.js 248 kB +24 B (+0.01%)
dist/array.full.js 334 kB +24 B (+0.01%)
dist/array.full.no-external.js 333 kB +24 B (+0.01%)
dist/array.js 155 kB +24 B (+0.02%)
dist/array.no-external.js 154 kB +24 B (+0.02%)
dist/main.js 156 kB +24 B (+0.02%)
dist/module.full.js 334 kB +24 B (+0.01%)
dist/module.full.no-external.js 333 kB +24 B (+0.01%)
dist/module.js 155 kB +24 B (+0.02%)
dist/module.no-external.js 154 kB +24 B (+0.02%)
ℹ️ View Unchanged
Filename Size
dist/all-external-dependencies.js 182 kB
dist/exception-autocapture.js 8.75 kB
dist/external-scripts-loader.js 2.19 kB
dist/recorder-v2.js 102 kB
dist/recorder.js 103 kB
dist/surveys-preview.js 56.7 kB
dist/surveys.js 62.1 kB
dist/tracing-headers.js 1.33 kB
dist/web-vitals.js 10.3 kB

compressed-size-action

@pauldambra pauldambra added the bump patch Bump patch version when this PR gets merged label Oct 23, 2024
@pauldambra pauldambra requested a review from a team October 23, 2024 14:31
@pauldambra pauldambra merged commit 2379c71 into main Oct 24, 2024
16 checks passed
@pauldambra pauldambra deleted the fix/expose-last-activity-timestamp branch October 24, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump patch Bump patch version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants