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(actions): make events query date limit explicit #28157

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

thmsobrmlr
Copy link
Contributor

Problem

https://posthog.slack.com/archives/C0368RPHLQH/p1738349049948379

Changes

Sets an explicit 24h date limit.

How did you test this code?

👀

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR adds an explicit 24-hour time limit to the events query in the Action component, aligning with the UI's "recent events" messaging and preventing unbounded queries.

  • Added after: '-24h' parameter to events query in /frontend/src/scenes/actions/Action.tsx to enforce time boundary
  • Ensures consistent behavior with UI messaging that already indicates "recent" events
  • Prevents potential performance issues from unlimited historical queries

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@thmsobrmlr thmsobrmlr enabled auto-merge (squash) January 31, 2025 19:46
Copy link
Contributor

github-actions bot commented Jan 31, 2025

Size Change: +5 B (0%)

Total Size: 1.16 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.16 MB +5 B (0%)

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@thmsobrmlr thmsobrmlr merged commit df2dc69 into master Feb 3, 2025
99 checks passed
@thmsobrmlr thmsobrmlr deleted the explicit-date-limit branch February 3, 2025 14:35
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.

3 participants