Skip to content

Conversation

@Diosbejgli
Copy link
Collaborator

@Diosbejgli Diosbejgli commented Aug 24, 2025

Add new boards.fetch_all_items_by_board_id method to fetch all board items without having to implement pagination by the user as its already done in the API client.

Uses the new next_items_page object in Monday API for cursor-based pagination based on https://developer.monday.com/api-reference/changelog/new-next_items_page-object-for-cursor-based-pagination

Test query:

monday = MondayClient("Secret")

items = monday.boards.fetch_all_items_by_board_id('12345678')

>>> len(items)
1802

Also introduced a new global constant DEFAULT_PAGE_LIMIT_ITEMS with a value of 500 and made it the default for fetch_items_by_board_id and fetch_all_items_by_board_id methods for more efficient queries. Otherwise the API default is 25.

I've also fixed the doc build failures and removed the whole docs/_build/ folder and added it to .gitignore.

@Diosbejgli Diosbejgli requested a review from rhymiz August 24, 2025 10:51
@Diosbejgli Diosbejgli marked this pull request as ready for review August 24, 2025 11:11
@rhymiz rhymiz merged commit a8b010a into ProdPerfect:master Aug 24, 2025
4 checks passed
@Diosbejgli Diosbejgli deleted the fetch-all-items branch August 24, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants