8000 Feat: Events Frontend, Redux by mrkaye97 · Pull Request #1859 · hatchet-dev/hatchet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feat: Events Frontend, Redux #1859

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

Merged
merged 32 commits into from
Jun 13, 2025
Merged

Feat: Events Frontend, Redux #1859

merged 32 commits into from
Jun 13, 2025

Conversation

mrkaye97
Copy link
Contributor
@mrkaye97 mrkaye97 commented Jun 12, 2025

Description

Adding back the events frontend + V1-ifying it with some new queries for fetching + filtering events, keys, etc.

TODO:

  • Figure out cached state for filters (add a filter, old runs still show up)
  • Make sure success / fail counts are correct (some duplicates, seemingly, or not all runs being fetched properly)
  • Should additional meta filters be able to filter by non-string types? <-- I don't think we can really do this, which is a bummer

Type of change

  • New feature (non-breaking change which adds functionality)

Copy link
vercel bot commented Jun 12, 2025

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

Name Status Preview Comments Updated (UTC)
hatchet-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2025 6:04pm
hatchet-v0-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2025 6:04pm

@mrkaye97 mrkaye97 marked this pull request as ready for review June 12, 2025 20:28
@mrkaye97 mrkaye97 requested a review from Copilot June 12, 2025 20:28
@@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
CREATE INDEX v1_events_olap_scope_idx ON v1_events_olap (tenant_id, scope, seen_at DESC) WHERE scope IS NOT NULL;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

partial index to enable filtering by scope + seen at. one note here is we can't create this index concurrently unless we loop over all the partitions, but I figured this was probably fine


-- name: ListEvents :many
WITH included_events AS (
SELECT DISTINCT e.*
Copy link
Contributor

Choose a reason for hiding this comment

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

seems alright to try this for now

sc.cancelled_count,
sc.failed_count
-- name: ListEventKeys :many
SELECT DISTINCT key
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah it's probably alright. We used to have an event key table and use a cached update on it, but we can always do something fancier when we hit problems here

@mrkaye97 mrkaye97 merged commit 4348dc9 into main Jun 13, 2025
41 checks passed
@mrkaye97 mrkaye97 deleted the feat--events-frontend branch June 13, 2025 18:16
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
0