Skip to content

Add filtering by extra fields in API and frontendExtra field filter#904

Open
piitaya wants to merge 2 commits intoDonkie:masterfrom
piitaya:extra_field_filter
Open

Add filtering by extra fields in API and frontendExtra field filter#904
piitaya wants to merge 2 commits intoDonkie:masterfrom
piitaya:extra_field_filter

Conversation

@piitaya
Copy link
Copy Markdown

@piitaya piitaya commented Apr 5, 2026

Summary

Add support for filtering entities (vendors, filaments, spools) by their extra fields.

CleanShot 2026-04-05 at 18 14 53@2x

API

The list endpoints (GET /vendor, GET /filament, GET /spool) now accept extra.<key>=<value> query parameters. Same conventions as existing filters (partial match, comma-separated OR, quoted exact match, empty for missing).

Example: GET /api/v1/spool?extra.tag=production

Frontend

Extra fields of type choice and boolean now have filter dropdowns in the table columns.

Related

Similar goal as #773 but takes a smaller, lower-risk approach (~360 lines vs ~1700). Reuses existing filter patterns with no new modules. I'm fine with closing my PR if you think we should go for #773

This PR does not include sorting by extra fields or advanced filtering (text input, number ranges, date pickers). These can be added in follow-up PRs without breaking changes.

@paxx12
Copy link
Copy Markdown

paxx12 commented Apr 8, 2026

This is great. I hope it gets merged, this would help with paxx12/SnapmakerU1-Extended-Firmware#364!

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