Skip to content

CLOUDSTACK-8766: Fix infinite scrolling pagination for zonal iso/temp… - #751

Merged
asfgit merged 1 commit into
apache:masterfrom
shapeblue:master-CLOUDSTACK-8766
Aug 31, 2015
Merged

asfgit merged 1 commit into
apache:masterfrom
shapeblue:master-CLOUDSTACK-8766

Conversation

@yadvr

@yadvr yadvr commented Aug 27, 2015

Copy link
Copy Markdown
Member

…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

@asfbot

asfbot commented Aug 27, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #420 SUCCESS
This pull request looks good

@asfbot

asfbot commented Aug 27, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #353 SUCCESS
This pull request looks good

@remibergsma

Copy link
Copy Markdown
Contributor

LGTM

@yadvr

yadvr commented Aug 28, 2015

Copy link
Copy Markdown
Member Author

Did some API request size and time comparisons for various pagesizes against a large template collection (more than 4000 templates across 30+ zones);

Page Size API response size (KB) Time (ms)
20 15.8 360
100 77.1 366
150 117 448
200 157 408
250 199 440
500 402 791

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:

ps=20
20

ps=100
100

ps=150
150

ps=200
200

ps=250
250

ps=500
500

yadvr added a commit to shapeblue/cloudstack that referenced this pull request Aug 28, 2015
…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>
@asfbot

asfbot commented Aug 28, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #435 SUCCESS
This pull request looks good

@asfbot

asfbot commented Aug 28, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #368 ABORTED

@yadvr

yadvr commented Aug 31, 2015

Copy link
Copy Markdown
Member Author

@DaanHoogland

Copy link
Copy Markdown
Contributor

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.

@yadvr

yadvr commented Aug 31, 2015

Copy link
Copy Markdown
Member Author

@DaanHoogland this is just the UI :)
Alright 2LGTM, merging now.

@asfgit
asfgit merged commit a6e8cfd into apache:master Aug 31, 2015
asfgit pushed a commit that referenced this pull request Aug 31, 2015
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>
maneesha-p pushed a commit to maneesha-p/cloudstack that referenced this pull request Sep 3, 2015
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants