Skip to content

fix(api): pin the asset type when /assets/search has no filter - #132

Merged
JosteinGj merged 1 commit into
mainfrom
fix/assets-search-null-filter
Sep 20, 2026
Merged

JosteinGj merged 1 commit into
mainfrom
fix/assets-search-null-filter

Conversation

@JosteinGj

Copy link
Copy Markdown
Contributor

SearchBody.filter has no default where ResourceRetreiver.filter does, so a search body that omits the filter left pinAssetType nothing to write to. The query then ran across every node type, spent the limit on that mixed page, and dropped the non-assets afterwards — returning a handful of assets, or none, while matching ones sat past the cut.

What this changes

How it was verified

Checklist

  • Pull requests this one depends on are named above and merged first, or there are none
  • Commits are signed off (git commit -s), per CONTRIBUTING.md
  • ./gradlew build passes
  • Behaviour visible outside this repo is reflected in the documentation, or does not need to be
    (see AGENTS.md for which of the two documentation sites it belongs in)

SearchBody.filter has no default where ResourceRetreiver.filter does, so a search
body that omits the filter left pinAssetType nothing to write to. The query then
ran across every node type, spent the limit on that mixed page, and dropped the
non-assets afterwards — returning a handful of assets, or none, while matching
ones sat past the cut.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: jgjesdal <jostein@intellistream.ai>
@JosteinGj
JosteinGj requested a review from olavgg as a code owner September 18, 2026 13:02
@JosteinGj
JosteinGj marked this pull request as draft September 18, 2026 13:07
@JosteinGj
JosteinGj marked this pull request as ready for review September 20, 2026 13:12
@JosteinGj
JosteinGj merged commit 41aef84 into main Sep 20, 2026
8 of 9 checks passed
@JosteinGj
JosteinGj deleted the fix/assets-search-null-filter branch September 20, 2026 13:12
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