-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch actionable with pagination (#4655)
# Motivation Use multiple requests to get as much proposals with the status `ACCEPT_VOTES` as possible because there is limitation on the backend side, how many proposals can be requested with a single request. New approach uses maximum 5 requests (with the limit 100 for Nns and 20 for Snses each). # Changes - new const `MAX_ACTIONABLE_REQUEST_COUNT` = 5 - extend `loadActionableProposals` to make multiple calls - extend `loadActionableSnsProposals` to make multiple calls - added an error when page limit reached to have a feedback when this happens. # Tests - `loadActionableProposals` makes multiple calls - `loadActionableSnsProposals` makes multiple calls - manually with changing the page size # Todos - [ ] Add entry to changelog (if necessary). Not yet. # Screenshots <img width="611" alt="image" src="https://github.com/dfinity/nns-dapp/assets/98811342/461f17b2-e69f-4be4-af70-5e55298ed6df">
- Loading branch information
1 parent
eb37b66
commit d1f4d99
Showing
5 changed files
with
287 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.