feat: Search annotations in pipeline run API#107
Open
yuechao-qin wants to merge 1 commit intoycq/search-pipeline-run-pydantic-modelsfrom
Open
feat: Search annotations in pipeline run API#107yuechao-qin wants to merge 1 commit intoycq/search-pipeline-run-pydantic-modelsfrom
yuechao-qin wants to merge 1 commit intoycq/search-pipeline-run-pydantic-modelsfrom
Conversation
Collaborator
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Feb 24, 2026
Volv-G
reviewed
Feb 25, 2026
Volv-G
reviewed
Feb 25, 2026
yuechao-qin
commented
Feb 25, 2026
78fdccf to
f7dc9bc
Compare
41a18a2 to
7606c83
Compare
98e7d41 to
ecd7842
Compare
f7dc9bc to
b5f0ba9
Compare
This was referenced Feb 26, 2026
b5f0ba9 to
88b265f
Compare
ecd7842 to
ba5594e
Compare
ba5594e to
d6f04df
Compare
88b265f to
9a0930e
Compare
Ark-kun
reviewed
Mar 3, 2026
Ark-kun
reviewed
Mar 3, 2026
Ark-kun
reviewed
Mar 3, 2026
Ark-kun
reviewed
Mar 3, 2026
Ark-kun
reviewed
Mar 3, 2026
Ark-kun
reviewed
Mar 3, 2026
Ark-kun
reviewed
Mar 3, 2026
Ark-kun
requested changes
Mar 3, 2026
Ark-kun
reviewed
Mar 3, 2026
d6f04df to
7369ffc
Compare
9a0930e to
fdbdc71
Compare
7369ffc to
331fe0f
Compare
331fe0f to
e29a08e
Compare
Ark-kun
approved these changes
Mar 4, 2026
Contributor
Ark-kun
left a comment
There was a problem hiding this comment.
Approved. But please resolve the comments.
morgan-wowk
reviewed
Mar 5, 2026
morgan-wowk
requested changes
Mar 5, 2026
morgan-wowk
approved these changes
Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

TL;DR
Implemented annotation-based filtering for Pipeline Run API and proper pagination handling.
What changed?
API
GET /api/pipeline_runs/Functionality
filter_querywhich handles annotation searches in pipeline runs.(key, pipeline_run_id, value).filterand newfilter_queryacross pages.Other
filter_query_sql.pymodule with comprehensive filter query processing:PageTokenclass for encoding/decoding pagination statekey_exists,value_equals,value_contains,value_inand,or,notwith proper nestingHow to test?
{"and": [{"key_exists": {"key": "team"}}]}{"and": [{"value_equals": {"key": "env", "value": "prod"}}]}and/or/notpredicatesfilterandfilter_queryparametersWhy make this change?
Annotation search support is the backbone for all the upcoming search features (
create_by,pipeline name,status) for Pipeline Runs. The other searches will be search against the annotations table.