Extract a SearchFilters record for the document search signatures #683
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Follow-up flagged in the review of PR #682 (Phase 6 undated documents, #668) — Felix (developer).
After threading the
undatedfilter through search,DocumentService.searchDocuments(...)andfindIdsForFilter(...)(and the controller that calls them) now take ~13 positional parameters. That's hard to read and easy to mis-call (positional args of the same type are a swap-bug risk).Suggested approach
SearchFiltersrecord (q, from, to, tags, sender, receiver, status, scriptType, undated, sort, direction, page, size — whatever the real set is) in thedocumentpackage./searchand/idspaths; the controller binds query params into the record.Out of scope / notes