You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
beer-1
changed the title
query endpoint is ignoring accumulate flag
query handlers are ignoring accumulate flag
Jan 6, 2025
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 🤞)
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 itemsVersion
Steps to Reproduce
Do query with pagination setting
For Admin Use
The text was updated successfully, but these errors were encountered: