Skip to content

[AI] Add beaconTimeline to Metrics GraphQL Query#2173

Closed
KCarretto wants to merge 1 commit intomainfrom
add-beacon-timeline-16155986931105137112
Closed

[AI] Add beaconTimeline to Metrics GraphQL Query#2173
KCarretto wants to merge 1 commit intomainfrom
add-beacon-timeline-16155986931105137112

Conversation

@KCarretto
Copy link
Copy Markdown
Collaborator

This PR adds a beaconTimeline field to the metrics GraphQL query to provide a timeline of beacon check-in statistics.

Changes:

  • Added beaconTimeline field and BeaconTimelineBucket type to tavern/internal/graphql/schema/metrics.graphql.
  • Configured the new field to generate a resolver stub in tavern/internal/graphql/gqlgen.yml.
  • Re-generated the gqlgen and ent code.
  • Restored inadvertently downgraded builderpb, c2pb, epb, and portalpb protobuf files modified by go generate.
  • Implemented the BeaconTimeline resolver in tavern/internal/graphql/metrics.resolvers.go, referencing the existing QuestTimelineChart resolver to handle time range, granularity bucketing, and where filtering using the BeaconHistory ent.
  • All backend GraphQL tests continue to pass.

PR created automatically by Jules for task 16155986931105137112 started by @KCarretto

Adds a new beaconTimeline field to the Metrics GraphQL query, mirroring
the existing questTimeline functionality but utilizing the BeaconHistory
ent to expose beacon check-in timeline statistics. Updates gqlgen config
and implements the generated resolver.

Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
208 208 0 0 0 0 1ms

Previous Results

Build 🏗️ Result 🧪 Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
#1943 208 208 0 0 0 0 not captured

Insights

Average Tests per Run Total Flaky Tests Total Failed Slowest Test (p95)
208 0 0 733ms

Test Changes

0 test added, 0 removed

Slowest Tests

Test 📝 Results 📊 Duration (avg) ⏱️ Duration (p95) ⏱️
src/context/FilterContext/tests/FilterControls.test.tsx: FilterControls > Filter lock/unlock toggle > should toggle isLocked when lock button is clicked 1 733ms 733ms
src/context/FilterContext/tests/FilterControls.test.tsx: FilterControls > Filter component interactions > should preserve filter values when toggling lock state 1 718ms 718ms
src/context/FilterContext/tests/FilterControls.test.tsx: FilterControls > Filter lock/unlock toggle > should disable filter components when isLocked is true 1 458ms 458ms
src/components/create-shell-button/CreateShellButtonWindowOpen.test.tsx: CreateShellButton opens new tab on click 1 445ms 445ms
src/context/FilterContext/tests/FilterControls.test.tsx: FilterControls > Filter label calculation > should count text search filters correctly 1 410ms 410ms
src/context/FilterContext/tests/FilterControls.test.tsx: FilterControls > Filter component interactions > should update filter state when inputs change 1 341ms 341ms
src/context/FilterContext/tests/FilterControls.test.tsx: FilterControls > Filter label calculation > should count multiple active filters correctly 1 303ms 303ms
src/context/SortContext/tests/SortingControls.test.tsx: SortingControls > Updating sort settings > should update sort field when field dropdown changes 1 289ms 289ms
src/components/tavern-base-ui/table/tests/TablePagination.test.tsx: TablePagination > Navigation callbacks > should call refetchTable with startCursor on Previous click 1 241ms 241ms
src/components/tavern-base-ui/table/tests/Table.test.tsx: Table > Column sorting > should set column width from getSize() 1 210ms 210ms

🎉 No failed tests in this run. | 🍂 No flaky tests in this run.

Github Test Reporter by CTRF 💚

@KCarretto KCarretto closed this Apr 10, 2026
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.

1 participant