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

fix: pagination logic when using previous cursor #94

Merged
merged 6 commits into from
Feb 3, 2023

Conversation

darkmatterpool
Copy link
Contributor

A bug caused the previous cursor to appear in API responses even if no last data was available.

Signed-off-by: Lawrence Zawila 113581282+darkmatterpool@users.noreply.github.com

…ch caused previous cursor to appear in API responses even if there was no previous data available.

Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Feb 2, 2023

Codecov Report

Merging #94 (a00910b) into main (5dcc970) will decrease coverage by 0.29%.
The diff coverage is 9.21%.

@@            Coverage Diff             @@
##             main      #94      +/-   ##
==========================================
- Coverage   19.22%   18.94%   -0.29%     
==========================================
  Files         106      106              
  Lines        4832     4889      +57     
==========================================
- Hits          929      926       -3     
- Misses       3798     3857      +59     
- Partials      105      106       +1     
Impacted Files Coverage Δ
internal/app/storage/accounts.go 0.00% <0.00%> (ø)
internal/app/storage/payments.go 0.00% <0.00%> (ø)
internal/app/storage/repository.go 0.00% <ø> (ø)
internal/app/storage/task.go 0.00% <0.00%> (ø)
internal/app/storage/paginate.go 67.04% <29.16%> (-16.06%) ⬇️
...rnal/app/connectors/dummypay/task_generate_file.go 67.28% <0.00%> (-2.81%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

gfyrag
gfyrag previously approved these changes Feb 2, 2023
antoinegelloz
antoinegelloz previously approved these changes Feb 2, 2023
Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
antoinegelloz
antoinegelloz previously approved these changes Feb 2, 2023
Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
@darkmatterpool darkmatterpool merged commit 09953b5 into main Feb 3, 2023
@darkmatterpool darkmatterpool deleted the fix/pagination-logic branch February 3, 2023 13:10
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.

3 participants