fix(api): add sort, search, visibility to knowledge entry query DTO #533

Merged
jason.woltje merged 2 commits from fix/knowledge-entry-query-dto-sort-search into main 2026-02-27 05:16:31 +00:00
Owner

Summary

  • Adds , , , and fields to
  • Wires these into with proper Prisma query building
  • Fixes File Manager property
## Summary - Adds , , , and fields to - Wires these into with proper Prisma query building - Fixes File Manager property
jason.woltje added 2 commits 2026-02-27 05:13:31 +00:00
fix(api,web): add workspace context to widget endpoints and auto-detect workspace ID
All checks were successful
ci/woodpecker/push/api Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
64d3ad810b
- Add WorkspaceGuard to all widget data endpoints in WidgetsController
- Use RequestWithWorkspace type for proper type safety (no non-null assertions)
- Auto-detect workspace ID from localStorage in apiRequest when not
  explicitly provided, fixing all API calls missing X-Workspace-Id header
- Replace hardcoded "default-workspace-id" in credentials pages with
  useWorkspaceId() hook

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fix(api): add sortBy, sortOrder, search, visibility to knowledge entry query DTO
All checks were successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/api Pipeline was successful
676d8707fe
The File Manager frontend sends sortBy, sortOrder, search, and visibility
query parameters but the API DTO rejected them with validation errors.
Adds the missing fields to EntryQueryDto and wires them into the service's
findAll method with proper Prisma query building.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jason.woltje merged commit 11f22a7e96 into main 2026-02-27 05:16:31 +00:00
jason.woltje deleted branch fix/knowledge-entry-query-dto-sort-search 2026-02-27 05:16:31 +00:00
Sign in to join this conversation.