Increase project overview's number of "Recent Actives"

Tagged:  

Currently our project overview shows the ten most recent activities. We need to go back further.

I'd like to change this to a much higher number, or (perhaps someday) enable pagination.

Is there a setting to increase the number of displayed log entries? Or can you point me to the core code where I can tweak this myself?

Many thanks,
Phillip

There is a setting. The code is found here: https://github.com/phpfreak/Project-Pier/blob/master/application/controllers/DashboardCont... and looks like this:

    if (logged_user()->isAdministrator()) {
          $activity_log = ApplicationLogs::getOverallLogs($include_private, $include_silent, null, config_option('dashboard_logs_count', 150));
        } else {
          $activity_log = ApplicationLogs::getOverallLogs($include_private, $include_silent, $project_ids, config_option('dashboard_logs_count', 150));
        }

I noticed the configuration option is missing from the initial data script. Run this against the database:

INSERT INTO `<?php echo $table_prefix ?>config_options` (`category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES ('general', 'dashboard_logs_count', '50', 'IntegerConfigHandler', 0, 27, NULL);

Replace <?php echo $table_prefix ?> with your table prefix.

Yes, pagination would be great, as well as filters (like tickets). And maybe collapsing entries by the same user on the same object around the same time.