-
Notifications
You must be signed in to change notification settings - Fork 7
Rewrite get data to fix bug #293
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
Conversation
913a396
to
47e3684
Compare
da915d0
to
f606afc
Compare
apiCall({ | ||
...params, | ||
page, | ||
itemsPerPage: 10, |
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.
The max items per page is 30: https://github.com/os2display/display-api-service/blob/develop/config/packages/api_platform.yaml#L11
Let's fetch as many results as possible when fetching all.
|
||
totalItems = hydraTotalItems; | ||
fetchedItems = fetchedItems.concat(itemsWithOriginalArgs); | ||
page++; |
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.
f606afc
to
1c8560a
Compare
Link to ticket
https://leantime.itkdev.dk/TimeTable/TimeTable?showTicketModal=5276#/tickets/showTicket/4905
#283
Description
mapData
as it was impossible to remove itemsmap-to-ids.js
helper<PaginationButton
Screenshot of the result
🖼️