Skip to content

feat: save promql queries in filters - #1830

Merged
nikhilsinhaparseable merged 1 commit into
parseablehq:mainfrom
nikhilsinhaparseable:save-promql
Oct 22, 2026
Merged

nikhilsinhaparseable merged 1 commit into
parseablehq:mainfrom
nikhilsinhaparseable:save-promql

Conversation

@nikhilsinhaparseable

@nikhilsinhaparseable nikhilsinhaparseable commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features
    • Added support for PromQL filters.
    • PromQL filters now use dataset-based authorization, while SQL filters continue to use query-based authorization.

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 5505f11d-5f2a-4194-9213-362ad9070e7e
📥 Commits

Reviewing files that changed from the base of the PR and between a5976d2 and eec7c9f.

📒 Files selected for processing: 1
  • src/users/filters.rs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

Walkthrough

The filter type now includes PromQL, serialized as "promql". Filter listing authorizes PromQL filters against the saved stream’s dataset. SQL filters continue to use query-based authorization.

Changes

PromQL Filter Authorization

Layer / File(s) Summary
PromQL filter type and authorization
src/users/filters.rs
Adds the Promql filter type and its "promql" serialization. Filter listing uses dataset-based authorization for PromQL, Search, and Filter types, while SQL uses query-based authorization.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Suggested reviewers: parmesant

Merge Risk: ⚪ Minimal · up to eec7c

Saved PromQL filters retain their type, and no actionable merge risk was identified. Mergeable after normal checks.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The pull request has no description. It omits the required Description section, issue reference handling, rationale, key changes, and validation checklist. Add a pull request description with the goal, chosen solution and rationale, key changes, relevant issue reference or removal of the issue section, and completed testing, comments, and documentation checklist items.
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly states the main change: saving PromQL queries in filters.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks each filter’s name,
PromQL joins the list in frame.
Dataset rules guide where it may go,
While SQL keeps its query flow.
The carrot queue is neat as snow.

Comment @coderabbitai help to get the list of available commands.

@nikhilsinhaparseable
nikhilsinhaparseable merged commit 44bd8db into parseablehq:main Oct 22, 2026
12 checks passed
VibeSWE added a commit to VibeEngineeringAI/parseable that referenced this pull request Oct 24, 2026
…-1830

feat: save PromQL queries in filters (port upstream parseablehq#1830)
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