Draft: Add pagination support for Hierarchy Widget children list
What does this MR do and why?
Add pagination support for work item's Hierarchy Widget children.
Notes:
- Current limit is set to 2 for testing purpose. Before merging the MR, it will be set to 50 as per the discussion.
- Subscription will be resolved separately in the Draft: Fix subscription in hierarchy widget (!158567 - closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screen Recording 2024-07-03 at 10.10.27 PM.mov
How to set up and validate locally
Prerequisites:
- Enable the OKRs feature as mentioned in the OKRs docs (e.g.
::Feature.enabled?(:okrs_mvc, Project.find(<PROJECT_ID>))
and the namespace must have Ultimate plan). - Enable Epic work items
Feature.enable(:namespace_level_work_items)
Steps to verify:
- Login with any user
- Go to any Group or Project and create an Epic or Objective
- Add more than 3 items in Child items section
- Check if Load more button is appearing
- Check if reordering is working after loading more items
- Add few items using the
Add
button functionality. - Try to remove few items from the list
Check similar behaviour on Issue's Child items
widget.
Related to #463881 (closed)
Edited by Rajan Mistry