Repository navigation
fix(search): consistent UUID match and single planning for prop filters - #467
Merged
Merged
Conversation
- matchedFiles matched artifact_path case-insensitively (~*) while the EXISTS shape compares it to uuid::text (lowercase); both now match lowercase only, so the two shapes select the same rows. - SearchPage plans the property filters once, for the page and the count of a page past the end, instead of once per query. - Fix stale comments on SearchFilter.Props and propByID.
Coverage
Go by area
Web by area (lines)
|
M0Rf30
pushed a commit
that referenced
this pull request
Nov 11, 2026
) * feat(search): match docker image tags by property (prop:KEY=VALUE) The web UI stores a docker tag's properties under the id of the tag's row in the package listing (catalog dockerBranch: t.id), which is docker_tags.id, the id of the docker search row. The tag upsert keeps that id when the tag is pushed again. Drop the s.format <> 'docker' exclusion and add a docker_tags half to the id-array shape (matchedArtifacts), joined on the same repository with the lowercase UUID match of #467; the EXISTS shape already compares s.id::text. Tests: a docker repository in the prop world (a tagged tag, a deleted tag, a tag id stored in another repository, an upper-case stored id), both shapes. The plan test gets 2000 filler files, tags and properties so it is costed over more than a dozen rows; the EXISTS case now asserts the per-row probe with a selective name. With the whole table tagged the planner picks a hash semi-join on main too (300k files: 92-104 ms on main, 66-77 ms with 100k tagged docker tags added). Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(web): regenerate the API client for the docker prop description Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Areef <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
shape compares it to uuid::text (lowercase); both now match lowercase only,
so the two shapes select the same rows.
page past the end, instead of once per query.