From: Aidan Saunders Date: Tue, 4 Jul 2023 23:24:31 +0000 (+0100) Subject: AdminUI: Convert Job Log page civicrm/admin/joblog X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a0f0534cdb277ea871ba3b6d411019f4b18c4e00;p=civicrm-core.git AdminUI: Convert Job Log page civicrm/admin/joblog --- diff --git a/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.html b/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.html new file mode 100644 index 0000000000..c29768ddc1 --- /dev/null +++ b/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.html @@ -0,0 +1,13 @@ +
+ + +
diff --git a/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.json b/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.json new file mode 100644 index 0000000000..3bde1de42d --- /dev/null +++ b/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.json @@ -0,0 +1,19 @@ +{ + "type": "search", + "requires": [], + "entity_type": null, + "join_entity": null, + "title": "Scheduled Jobs Log", + "description": "", + "is_dashlet": false, + "is_public": false, + "is_token": false, + "contact_summary": null, + "summary_contact_type": null, + "icon": "fa-list-alt", + "server_route": "civicrm/admin/joblog", + "permission": "admin CiviCRM", + "redirect": null, + "create_submission": false, + "navigation": null +} diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Scheduled_Jobs_Log.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Scheduled_Jobs_Log.mgd.php new file mode 100644 index 0000000000..dc47e1ce49 --- /dev/null +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Scheduled_Jobs_Log.mgd.php @@ -0,0 +1,105 @@ + 'SavedSearch_Scheduled_Jobs_Log', + 'entity' => 'SavedSearch', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Scheduled_Jobs_Log', + 'label' => E::ts('Scheduled Jobs Log'), + 'form_values' => NULL, + 'mapping_id' => NULL, + 'search_custom_id' => NULL, + 'api_entity' => 'JobLog', + 'api_params' => [ + 'version' => 4, + 'select' => [ + 'run_time', + 'name', + 'command', + 'description', + 'data', + ], + 'orderBy' => [], + 'where' => [], + 'groupBy' => [], + 'join' => [], + 'having' => [], + ], + 'expires_date' => NULL, + 'description' => NULL, + ], + 'match' => [ + 'name', + ], + ], + ], + [ + 'name' => 'SavedSearch_Scheduled_Jobs_Log_SearchDisplay_Scheduled_Jobs_Log_Table_1', + 'entity' => 'SearchDisplay', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Scheduled_Jobs_Log_Table_1', + 'label' => E::ts('Scheduled Jobs Log Table 1'), + 'saved_search_id.name' => 'Scheduled_Jobs_Log', + 'type' => 'table', + 'settings' => [ + 'description' => NULL, + 'sort' => [ + [ + 'run_time', + 'DESC', + ], + ], + 'limit' => 50, + 'pager' => [], + 'placeholder' => 5, + 'columns' => [ + [ + 'type' => 'field', + 'key' => 'run_time', + 'dataType' => 'Timestamp', + 'label' => E::ts('Date'), + 'sortable' => TRUE, + ], + [ + 'type' => 'html', + 'key' => 'name', + 'dataType' => 'String', + 'label' => E::ts('Job Name and Command'), + 'sortable' => TRUE, + 'rewrite' => '[name]

[command]', + ], + [ + 'type' => 'html', + 'key' => 'description', + 'dataType' => 'String', + 'label' => E::ts('Output'), + 'sortable' => TRUE, + 'rewrite' => '' . E::ts("Summary:") . ' [description]
' . E::ts("Details:") . '
[data]
', + ], + ], + 'actions' => FALSE, + 'classes' => [ + 'table', + 'table-striped', + ], + ], + 'acl_bypass' => FALSE, + ], + 'match' => [ + 'name', + 'saved_search_id', + ], + ], + ], +];