Skip to content

feat: add PromQL to Composer#122

Merged
vadimkibana merged 3 commits into
mainfrom
promql-comment-printing-4
May 29, 2026
Merged

feat: add PromQL to Composer#122
vadimkibana merged 3 commits into
mainfrom
promql-comment-printing-4

Conversation

@vadimkibana
Copy link
Copy Markdown
Collaborator

@vadimkibana vadimkibana commented May 29, 2026

Summary

Adds PromQL support to Synt and Composer APIs for programmatic query construction - now with PromQL expressions.

Checklist

  • Unit tests have been added or updated.
  • The proper documentation has been added or updated.
  • If this PR contains breaking changes, you have explained them using the BREAKING CHANGE: change syntax.
  • The PR title has the correct conventional commit label in the title, this is crucial for the correct versioning of this package. Check the following cheat shit.

@vadimkibana vadimkibana marked this pull request as ready for review May 29, 2026 05:40
@vadimkibana vadimkibana requested a review from a team as a code owner May 29, 2026 05:40
Object.assign(n, Builder.parserFields({}));
},
});
if (!isPromqlNode(node)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just curious
Why skip Promql here instead of doing..

   visitAny: (n) => {
        Object.assign(n, Builder.parserFields({}));
    },
    promql: {
        visitPromqlAny: (n) => {
          Object.assign(n, PromQLBuilder.parserFields({}));
        },
     },

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, makes sense! I'll add this in a follow up.

@vadimkibana vadimkibana merged commit 44966f4 into main May 29, 2026
3 checks passed
@vadimkibana vadimkibana deleted the promql-comment-printing-4 branch May 29, 2026 13:35
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