IHIW / IHIW_Management

Management application for IHIW
Apache License 2.0
3 stars 3 forks source link

Uploads: Paging Enhancements #222

Closed bmatern closed 2 years ago

bmatern commented 2 years ago

Uploads paging is working well, with a caveat: The parent-child relationship is tricky, "orphaned" child uploads can appear by themselves on the second page, without their parent.

Solutions: 1) Before sending the page to the frontend, it could be iterated over all parents to make sure all children are in there. (Drawback: A child would then appear Twice, on two pages)

2) Completely Exclude children from paging. Then, iterate over the parents to add their children. (Drawback: Highly inconsistent upload #s per page)

Probably Solution 2 is better, not sure how to implement this in the current paging solution.

bmatern commented 2 years ago

197

bmatern commented 2 years ago

Option 2 has been implemented, seems to work well so far.