Skip to content

SQL-driven named query discovery via aiosql - #251

Open
tmikula-dev wants to merge 1 commit into
feature/116-adding-dashboard-aggregated-queryfrom
feature/116-adding-native-aiosql-discovery
Open

tmikula-dev wants to merge 1 commit into
feature/116-adding-dashboard-aggregated-queryfrom
feature/116-adding-native-aiosql-discovery

Conversation

@tmikula-dev

@tmikula-dev tmikula-dev commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Overview

This pull request refactors the way named queries are discovered, validated, and executed for the stats API. Instead of using a static Python registry, public named queries are now dynamically discovered from SQL files at startup, grouped by family (jobs_detail or aggregation). This enables easier addition of new queries and enforces stricter validation of available queries. The changes also update the handler and reader code to use this new dynamic discovery and validation approach.

Release Notes

  • Public named queries are now discovered from the SQL files through aiosql.

Related

Closes #116

@tmikula-dev tmikula-dev self-assigned this Nov 4, 2026
@tmikula-dev
tmikula-dev added this pull request to stack #252 November 4, 2026 11:06
@tmikula-dev tmikula-dev added the refactoring Improving code quality, paying off tech debt, aligning APIs label Nov 4, 2026
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 64c9ee52-6d14-45d4-9e5e-b2e5be1c4a18
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Improving code quality, paying off tech debt, aligning APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EventStats: compiled queries endpoint for server-side aggregations

1 participant