Skip to content

Commit c8df72b

Browse files
feat(graphql): add metrics top-level query and questTimelineChart (#2126)
Adds a `metrics` top-level GraphQL query resolving `questTimelineChart` for use in dashboard UI. It fetches quests, buckets them into discrete time intervals based on a `granularity_seconds` parameter, and groups the items inside each bucket by their executing Tome's tactic. Empty buckets are preserved and padded with zero counts to maintain uniform timeline chart data. Also includes unit tests covering precise interval generation and empty bucket edge cases. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com>
1 parent 28b83c5 commit c8df72b

File tree

19 files changed

+2680
-801
lines changed

19 files changed

+2680
-801
lines changed

tavern/internal/builder/builderpb/builder.pb.go

Lines changed: 246 additions & 96 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tavern/internal/builder/builderpb/builder_grpc.pb.go

Lines changed: 15 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)