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

bug: Store API's ascending flag not working properly #3143

Open
AYAHASSAN287 opened this issue Oct 23, 2024 · 0 comments
Open

bug: Store API's ascending flag not working properly #3143

AYAHASSAN287 opened this issue Oct 23, 2024 · 0 comments
Labels
bug Something isn't working effort/hours Estimated to be completed in a few hours

Comments

@AYAHASSAN287
Copy link

Problem

ascending flag isn't working correctly

Impact

Can't retrieve pages via store API forwardly

To reproduce

1-sending 4 messages
2- Call REST API "get /store/v3/messages" with flag ascending=True and pagesize=2
2- expected : pages are returned forwardly
3-actual : pages returned backwardly


1-sending 4 messages
2- Call REST API "get /store/v3/messages" with flag ascending=False and pagesize=2
2- expected : pages are returned backwardly
3-actual : pages returned backwardly


1-sending 4 messages
2- Call REST API "get /store/v3/messages" with flag ascending="ABC" and pagesize=2
2- expected : pages are returned forwardly
3-actual : pages returned forwardly

Expected behavior

there is no way to get pages forward unless ascending flag is set to wrong value like string or special characters

nwaku version/commit hash

c5a825e

@AYAHASSAN287 AYAHASSAN287 added the bug Something isn't working label Oct 23, 2024
@gabrielmer gabrielmer changed the title bug: bug: Store API's ascending flag not working properly Oct 24, 2024
@gabrielmer gabrielmer added the effort/hours Estimated to be completed in a few hours label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working effort/hours Estimated to be completed in a few hours
Projects
Status: Priority
Development

No branches or pull requests

2 participants