[MGNLRESTUI-32] restLinkField loops same entries, does not lazy load Created: 01/Jul/20  Updated: 25/Aug/20  Resolved: 24/Aug/20

Status: Closed
Project: Magnolia REST Client UI
Component/s: None
Affects Version/s: 1.0.1
Fix Version/s: 1.0.2

Type: Bug Priority: Blocker
Reporter: Chris Jennings Assignee: Canh Nguyen
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: 0d
Time Spent: 2d 1h
Original Estimate: Not Specified

Attachments: File restui.mov    
Issue Links:
relation
is related to MGNLRESTUI-34 select and comboBox field do not hand... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: Declarative REST clients
Sprint: HL & LD 9, HL & LD 10
Story Points: 3

 Description   

Timebox for investigation: 3 SP

A restLinkField fed by a jsonDataSource does not lazy load fresh items but, instead, loops through the same few items repeatedly. This makes the component unusable as items further down the list are never visible.

Example light module to reproduce issue: https://git.magnolia-cms.com/users/ukusergroup/repos/mug-4-20200319/browse/lightmodules/mug-uk-headless-examples-light-module?at=refs%2Fheads%2Finvestigation

Note: In the attached video I highlight the first item to show it re-occurring but this happens without highlighting anything.

Dev notes:

  • might relate to miscalculation of data set size - is there even a fixed size for the set atm?
  • vaadin data provider needs to know size upfront; some sources to not provide it

Generated at Mon Feb 12 06:51:12 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.