Skip to content
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

MongoDB activities paging doesn't work in descending order #893

Open
bstasyszyn opened this issue Nov 24, 2021 · 0 comments
Open

MongoDB activities paging doesn't work in descending order #893

bstasyszyn opened this issue Nov 24, 2021 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@bstasyszyn
Copy link
Contributor

When paging through the outbox or inbox, using page-num=0 should always return the same result although random results are returned if new activities are being added. It seems that paging with 'descending' sort order produces this behaviour while 'ascending' sort order works.

@bstasyszyn bstasyszyn added the bug Something isn't working label Nov 24, 2021
@bstasyszyn bstasyszyn added this to the 0.1.8 milestone Nov 24, 2021
bstasyszyn added a commit to bstasyszyn/orb that referenced this issue Nov 26, 2021
Paging with descending sort order currently does not work with MongoDB (issue trustbloc#893) so sorting of activities is temporarily (maybe permanently) set to ascending.

Signed-off-by: Bob Stasyszyn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: TODO
Development

No branches or pull requests

1 participant