Repository navigation
CLOUDSTACK-8766: Fix infinite scrolling pagination for zonal iso/temp… - #751
Conversation
|
cloudstack-pull-rats #420 SUCCESS |
|
cloudstack-pull-analysis #353 SUCCESS |
|
LGTM |
|
Did some API request size and time comparisons for various pagesizes against a large template collection (more than 4000 templates across 30+ zones);
Based on this data, on the lowest side pagesize of 100 seems alright for the time taken vs the payload size, but has more risk on a lower reduced list size (not enough to render a scroll); on the higher side pagesize of 200-250 seems alright considering roughly similar time. Refs: |
…late listing Due to aggregation of templates and isos on the UI/client side, it could result that for each page we could end up having lesser templates/isos listed to have the scroll shown that triggers infinite scrolling. In theory, there is still a chance if there are several zones with the same template being listed resulting in only one aggregated template which could cause the scroll to not get shown; but in practice I believe this fix should work for most users. Page size set based on experimental data: apache#751 (comment) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
…late listing Due to aggregation of templates and isos on the UI/client side, it could result that for each page we could end up having lesser templates/isos listed to have the scroll shown that triggers infinite scrolling. In theory, there is still a chance if there are several zones with the same template being listed resulting in only one aggregated template which could cause the scroll to not get shown; but in practice I believe this fix should work for most users. Page size set based on experimental data: apache#751 (comment) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
9fe2404 to
a6e8cfd
Compare
|
cloudstack-pull-rats #435 SUCCESS |
|
cloudstack-pull-analysis #368 ABORTED |
|
@remibergsma @karuturi @abhinandanprateek @jburwell @DaanHoogland @miguelaferreira review please? (same as #750) |
|
Code LGTM and travis passes but I do not know what to test and the analysis gives a lot of solved issues from findbugs which I am sure have nothing to do with this PR but make me fail wary. |
|
@DaanHoogland this is just the UI :) |
CLOUDSTACK-8766: Fix infinite scrolling pagination for zonal iso/template listing Due to aggregation of templates and isos on the UI/client side, it could result that for each page we could end up having lesser templates/isos listed to have the scroll shown that triggers infinite scrolling. The fix is to use similar approach as in projects.js, to use the maximum pagesize of 500. In theory, there is still a chance if there are 500 zones with the same template being listed resulting in only one aggregated template which could cause the scroll to not get shown; but in practice I believe this fix should work for most users. (cherry picked from commit 8a1cc7a) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * pr/751: CLOUDSTACK-8766: Fix infinite scrolling pagination for zonal iso/template listing Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
…late listing Due to aggregation of templates and isos on the UI/client side, it could result that for each page we could end up having lesser templates/isos listed to have the scroll shown that triggers infinite scrolling. In theory, there is still a chance if there are several zones with the same template being listed resulting in only one aggregated template which could cause the scroll to not get shown; but in practice I believe this fix should work for most users. Page size set based on experimental data: apache#751 (comment) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>






…late listing
Due to aggregation of templates and isos on the UI/client side, it could result
that for each page we could end up having lesser templates/isos listed to have
the scroll shown that triggers infinite scrolling. The fix is to use similar
approach as in projects.js, to use the maximum pagesize of 500. In theory, there
is still a chance if there are 500 zones with the same template being listed
resulting in only one aggregated template which could cause the scroll to not
get shown; but in practice I believe this fix should work for most users.
(cherry picked from commit 8a1cc7a)
Signed-off-by: Rohit Yadav rohit.yadav@shapeblue.com