Closed bkline closed 2 years ago
@bkline I think this can be closed. At least, it works for me on the development branch currently. I'm updating the tests and noticed a comment in there to this ticket.
I see the comment on #42 (another of the bugs I reported) but not this one. Still, it's fixed (perhaps inadvertently). Closing.
Great. And I've got a test covering it that I'll put in a PR for @blairlearn this week.
Issue description
The Autosuggest feature documents the use of the
size
parameter to impose a ceiling on the number of terms to be returned to the caller. However, the code always returns ten terms, or all matching terms, whichever is fewer.Steps to reproduce the issue
curl 'https://sitewidesearchapi.cancer.gov/sitewidesearch/v1/Autosuggest/cgov/en/liver?size=5'
curl 'https://sitewidesearchapi.cancer.gov/sitewidesearch/v1/Autosuggest/cgov/en/liver?size=10'
curl 'https://sitewidesearchapi.cancer.gov/sitewidesearch/v1/Autosuggest/cgov/en/liver?size=15'
What's the expected result?
What's the actual result?
Additional details / screenshot
Patch
Notes
Be sure to add integration tests to verify the correct behavior when the bug has been fixed.