"UI" Paging in Profilepage - WIP #2215

merged 2 commits into from Jun 23, 2014


None yet

4 participants


Implemented a paging on the profile page for issue #144

Screenshot with "DefaultPackageListPageSize=3"


The bad part is that the UserController is still using the current "PackageService.FindPackagesByOwner" method - so on each page ALL packages of the user will be loaded from the database. To calculate the "TotalDownload" number the code iterates over all packages. If there would be a more clever way to get the "TotalDownload" number the paging could be implemented inside the PackageService as well.

This is one of the oldest open issue (or the oldest?) - so before I rewrite more I wanted to show my current implementation.


Can you do a page size of 10 and also provide a link to "Show All" please?


I use the same page size constant as in the normal packagelist. The screenshot with the page size 3 was just a sample. The current page size is 20.

The showall is a good idea!


Implemented the "Show All Packages" feature:

With "Show All Packages" enabled:

For the page size I still use the "DefaultPackageListPageSize" constant.


:shipit: Thanks!

@jeffhandley jeffhandley merged commit 8354eee into NuGet:master Jun 23, 2014
danliu commented Jul 17, 2014


After clicking the "show all packages" link, there is no easy way to go back to display the packages with paging (previous and next button). User has to manually browse back using the browser, in order to do this, which is not a good experience.

A suggestion is to add a "Display 20 packages per page" link, on the page of displaying all packages (after clicking the show all link).


Good suggestion - will add this via a new pull request, ok @danliu ?

danliu commented Jul 18, 2014

sounds good to me.


@danliu New PR: #2256

@robertmuehsig robertmuehsig deleted the robertmuehsig:144-paginginprofile branch Jul 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment