-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pagination on endpoint
/api/v2/open-data/<id>/data
returning du…
…plicates (#2467) * fix api/v2/open-data/<id>/data results growing with increase page number With each increase in page number, the number of results returned increase by a 100 * order /api/v2/open-data/<id>/data results when pagination is applied For pagination to work without dupliacates, the results have to be ordered. Otherwise, the database will not guarantee a record encountered in a previous page will not be returned in a future page as the database does not order results by default and will return randomly * enhance test case * refactor code * fix flaky test
- Loading branch information
1 parent
0068432
commit 075c193
Showing
5 changed files
with
98 additions
and
56 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
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