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

query handlers are ignoring accumulate flag #7825

Open
4 tasks
beer-1 opened this issue Jan 6, 2025 · 3 comments · May be fixed by #7831
Open
4 tasks

query handlers are ignoring accumulate flag #7825

beer-1 opened this issue Jan 6, 2025 · 3 comments · May be fixed by #7831
Assignees
Labels
good first issue Good for newcomers type: bug Something isn't working as expected

Comments

@beer-1
Copy link

beer-1 commented Jan 6, 2025

Summary of Bug

Affected Query Handlers:

These query handlers are not properly considering the accumulate flag, which leads to incorrect pagination results. Specifically:

When pagination.limit = 1 is set, the response includes 2 items instead of 1.
When pagination.count_total = true is enabled alongside pagination.limit = 1, the response incorrectly includes all items instead of limiting to just 1.

Expected Behaviour

Should return pagination.limit of items

Version

  • main
  • v9
  • v8
  • v7

Steps to Reproduce

Do query with pagination setting


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged/assigned
  • Estimate provided
@beer-1 beer-1 changed the title query endpoint is ignoring accumulate flag query handlers are ignoring accumulate flag Jan 6, 2025
@charymalloju
Copy link

@beer-1 I would like to work on this issue.

@beer-1
Copy link
Author

beer-1 commented Jan 9, 2025

yea sure please feel free to take and make PR!

@gjermundgaraba gjermundgaraba linked a pull request Jan 11, 2025 that will close this issue
10 tasks
@gjermundgaraba
Copy link
Contributor

Hi :) Normally the team would assign the issue, when we agree about the issue and solution, but it's all good. I'll assign @charymalloju to this and will drop a review in a moment.

I added a couple of things to the issue:

  • There is one more place where this seems to be a potential issue, so I added a link to that for 04-channel grpc_query.go
  • Looking through our current supported versions, this issue is likely a problem there too. I will add the backport tag to the connected PR which will open new PRs to those release branches (and hopefully there will be no conflicts 🤞)

@gjermundgaraba gjermundgaraba added type: bug Something isn't working as expected good first issue Good for newcomers labels Jan 11, 2025
@gjermundgaraba gjermundgaraba moved this from Backlog to In review in IBC-GO Eureka Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers type: bug Something isn't working as expected
Projects
Status: In review
Development

Successfully merging a pull request may close this issue.

3 participants