git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC/PATCH] gitweb: Paginate project list

From
Jakub Narebski <jnareb@gmail.com>
Date
May 10, 2008, 22:32 UTC
Message-ID
<200805110032.39729.jnareb@gmail.com>
In-Reply-To
<1210444108.11526.139.camel@localhost.localdomain>
On Sun, 10 May 2008, J.H. <warthog19@eaglescrag.net> wrote:
> $page_size should be moved to a configuration directive, with a possible
> default of 100, and there should be an option to turn it off completely
> (I.E. kernel.org will likely have it turned off).

If it would be configurable (and I agree that it is probably a good idea), it should be per gitweb instance (i.e. global variable), and should perhaps be named $project_list_page_size to distinguish it from number of items shown (page size) for 'shortlog', 'log' and 'history' views.

I guess that value of 0, or perhaps of undef would mean to not divide projects list, or project search results, into pages.

BTW. why do you think that kernel.org would be better to have project
list pagination turned off?
 
> It might also be advantageous to generate the entire list and stash that
> somewhere, (session on the host side?) and run the pagination out of
> that.

First, when using $projectslist file with new (second patch in series, "gitweb: Allow project description in project_index file" most of data (well, all except age) would be filled by parsing single file.

Second, the idea is to cache results of filled in @$projlist e.g. using Storable, i.e. cache Perl data and not final HTML output.

> Would even allow the user to choose how many items they wish to 
> see from a drop down maybe?
I think it is also a good idea, at least for search results.

NOTE that this was an RFC patch, meant mainly to provide comments on what to improve...

-- 
Jakub Narebski
Poland
Previous: J.H.Next: J.H.
Message 9 of 20 in “gitweb: Simplify git_project_list_body”
  1. gitweb: Simplify git_project_list_bodyJakub Narebski, May 1, 2008
  2. gitweb: Allow project description in project_index fileJakub Narebski, May 2, 2008
  3. Miklos VajnaMay 2, 2008
  4. gitweb: Allow project description in project_index fileJakub Narebski, May 3, 2008
  5. Miklos VajnaMay 4, 2008
  6. gitweb: Project searchJakub Narebski, May 9, 2008
  7. gitweb: Paginate project listJakub Narebski, May 10, 2008
  8. J.H.May 10, 2008
  9. Jakub NarebskiMay 10, 2008
  10. J.H.May 11, 2008
  11. Jakub NarebskiMay 11, 2008
  12. Jakub NarebskiMay 12, 2008
  13. Lars HjemliMay 12, 2008
  14. Jakub NarebskiMay 13, 2008
  15. Lars HjemliMay 13, 2008
  16. Jakub NarebskiMay 13, 2008
  17. Kristian HøgsbergMay 13, 2008
  18. Lars HjemliMay 13, 2008
  19. Jakub NarebskiMay 13, 2008
  20. Jakub NarebskiMay 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.