Skip to content

feat(assets): support ID filters in asset search - #5

Merged
bryansray merged 1 commit into
mainfrom
codex/asset-search-ids
Oct 22, 2026
Merged

bryansray merged 1 commit into
mainfrom
codex/asset-search-ids

Conversation

@bryansray

Copy link
Copy Markdown
Collaborator

Asset searches currently require callers to build list parameters manually to retrieve multiple known IDs. Add keyword-only ids: Sequence[int] | None to assets.search(), serialized as repeated ids[] parameters alongside the existing filters, field selection, and pagination.

Reject empty sequences and non-positive or non-integer IDs before making a request, including booleans and string values. Omitted IDs preserve existing behavior and positional compatibility. Document usage and cover list/tuple inputs, HTTP query encoding, combined filters, invalid inputs, and default behavior. Application-specific batch limits remain with consumers.

This enables corva-ai/corva-cli#109 to use the shared search helper instead of duplicating parameter serialization. The local API controller accepts ID filtering on its permission-scoped relation; no live API calls were made.

Validation: independent read-only review found no actionable issues. Final just check passed formatting, lint, type checks, and all 83 tests; git diff --check passed.

@bryansray bryansray self-assigned this Oct 22, 2026
@bryansray
bryansray merged commit 99e5c0a into main Oct 22, 2026
2 checks passed
@bryansray
bryansray deleted the codex/asset-search-ids branch October 22, 2026 13:39
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