KBEC-00120 - Changing the jobs and resources and project page size

Article ID:360032831232
2 minute readKnowledge base

Summary

CloudBees CD (CloudBees Flow) web pages limit the number of records displayed by default to keep from overwhelming the browser, and limits the number of objects retrieved by default to keep from overwhelming the data engine. Some CloudBees CD (CloudBees Flow) installations want to add more objects on the browser page or to retrieve more objects from the data engine.

Solution

Let’s say you want to display 250 records per page of up to 1000 objects retrieved.

Caveats

  1. New default values are not maintained during upgrade and must be redone after the upgrade.

  2. Some changes don’t take effect until the user logs out and logs back in again or Apache server restart.

  3. Clear your browser cache when making such adjustments.

  4. The larger the size of the query the longer it will take for page to get rendered. So, you need to change the sizing with caution.

For 6.0 and above

Go to Administration > Server:

  1. Change the value of pageSizeOptions in Top-level Properties > ec_ui:

pageSizeOptions.png
  1. Change the values of "default" and "job" in Top-level Properties > ec_ui > maxIds:

maxIds.png

Below 6.0

Records per page

The pull-down box labeled "Records per page:" at the bottom left of the web page can be changed by editing the file startup_init.php located in apache/htdocs/commander directory to include the following attributes:

  1. The default page size for the "browse" style pages like jobs, projects and resources:

     // The default page size for the 'browse' style pages like jobs, project, resources, etc.
     $config["browsePageSize"] = "250";
  2. Where object is job, project, resource, or plugin. Overrides the default.

     // Where object is job, project, resource or plugin. Overrides above default.
     $config["${object}PageSize"]  = "250";

Objects retrieved

The number of records retrieved in the lower right of the web page can be changed by editing the file config.php located in apache/htdocs/commander directory to include the following attributes:

  1. The default maximum number of results for the 'browse" style pages like jobs, project, resources, etc.:

     // The default maximum number of results for the 'browse' style pages like jobs, project, resources, etc.:
     $config["maxBrowseResults"]  = "1000";
  2. Where object is job, project, resource, or plugin. Overrides the default.

     // Where object is job, project, resource or plugin. Overrides above default.
     $config["max${object}Results"]  = "1000";