A callsign search stops at 200 rows while the mobile API docs promise 500 #64
Loading…
Reference in a new issue
No description provided.
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?
Problem
search_callsigncaps results at 200, while the published parameter table says the maximum is 500. A client asking for 500 gets at most 200 rows with no truncation flag, so a broad prefix search under-reports and the client cannot tell it was capped.Evidence
At
2f150f66:lib/aprsme_web/channels/mobile_channel.ex:98sets@max_search_results 200, applied at:185withmin(@max_search_results).docs/mobile-api.md:274documents thelimitmaximum as 500.test/aprsme_web/channels/mobile_channel_test.exs:411is titledlimits to max of 500but asserts only that results are non-empty.Expected
The cap and the documentation agree, and the response says when the result set was truncated.
How to verify
Seed 300 senders sharing a prefix, push
search_callsignwithlimit: 500and count the results: today it is 200.Acceptance criteria
Effort: S
Lens: api