-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/mx 1604 wikidata search endpoint #91
base: main
Are you sure you want to change the base?
Conversation
Depends on robert-koch-institut/mex-common#210 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks nice and clean!
just 2 small things, mex-common version bump, and a main merge please
…ckend into feature/mx-1604-wikidata-search-endpoint
…ckend into feature/mx-1604-wikidata-search-endpoint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks almost good, but i did find a glitch with the pagination though
offset=offset, | ||
limit=limit, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
total
is supposed to be the total number of search hits found on wikidata, not the number of returned items, any request-sender could figure that out by itself. (same is true for offset and limit, we don't need to mirror that back.)
e.g. if you'd search for "institute" you might get a couple of hundred hits on wikidata, but we only return limit
/ up to 100 of them. and a UI would need to know how many there are overall, to display a proper pagination bar.
i know this might complicate this PR a lot and i'm sorry i didn't spot that earlier in the mex-common pr. so at this point, i'd suggest you add a stop-gap comment in this line and create a new ticket stub to return the correct pagination total later
Added
/wikidata
endpoint to fetch all matching organizations from wikidata