HierarchicalQuery#getOffset always rerurns 0
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 717
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
Hi,
I'm using TreeGrid with a HierarchicalDataProvider, but HierarchicalQuery's offset is always equals 0 according to the following code:
https://github.com/vaadin/framework/blob/2d806a59509fa818b35e75998ed42df674c93122/server/src/main/java/com/vaadin/data/provider/HierarchyMapper.java#L493
Is there any bug or HierarchicalDataProvider shouldn't be used with very big trees?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at server/src/main/java/com/vaadin/data/provider/HierarchyMapper.java around line 493, where HierarchicalQuery#getOffset is reported to return 0. Reproduce the behavior with a TreeGrid using a HierarchicalDataProvider, then check whether offsets are expected to support large trees and determine what the observed result should be.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100