From e8715ce2a618a0e2fef72fee89e7b1658d484d2a Mon Sep 17 00:00:00 2001 From: Shawn Kwang Date: Mon, 8 Apr 2019 16:11:10 -0500 Subject: [PATCH] Drupal: Changed how the host_and_work_stats times are displayed. Host create time is now displayed with proper time zone. Workunit create time is now displayed with proper time zone. Task (result) create, sent, recevied, and report deadline times are now displayed with proper time zone. https://dev.gridrepublic.org/browse/DBOINCP-498 --- .../work_and_host_stats.views_default.inc | 232 +++++++++++++++++- 1 file changed, 224 insertions(+), 8 deletions(-) diff --git a/drupal/sites/all/features/work_and_host_stats/work_and_host_stats.views_default.inc b/drupal/sites/all/features/work_and_host_stats/work_and_host_stats.views_default.inc index a2ee9d2dc6..8cfed673fc 100644 --- a/drupal/sites/all/features/work_and_host_stats/work_and_host_stats.views_default.inc +++ b/drupal/sites/all/features/work_and_host_stats/work_and_host_stats.views_default.inc @@ -2000,12 +2000,47 @@ function work_and_host_stats_views_default_views() { 'hide_alter_empty' => 1, 'date_format' => 'custom', 'custom_date_format' => 'j M Y G:i:s T', - 'exclude' => 0, + 'exclude' => 1, 'id' => 'create_time', 'table' => 'host', 'field' => 'create_time', 'relationship' => 'none', ), + 'phpcode_6' => array( + 'label' => 'Created', + 'alter' => array( + 'alter_text' => 0, + 'text' => '', + 'make_link' => 0, + 'path' => '', + 'absolute' => 0, + 'link_class' => '', + 'alt' => '', + 'rel' => '', + 'prefix' => '', + 'suffix' => '', + 'target' => '', + 'help' => '', + 'trim' => 0, + 'max_length' => '', + 'word_boundary' => 1, + 'ellipsis' => 1, + 'html' => 0, + 'strip_tags' => 0, + ), + 'empty' => '', + 'hide_empty' => 0, + 'empty_zero' => 0, + 'hide_alter_empty' => 1, + 'value' => 'host_create_time); +?>', + 'exclude' => 0, + 'id' => 'phpcode_6', + 'table' => 'customfield', + 'field' => 'phpcode', + 'relationship' => 'none', + ), 'total_credit' => array( 'label' => 'Total credit', 'alter' => array( @@ -5640,7 +5675,7 @@ Cross-project stats: $handler->override_option('path', 'account/%/computers/active'); $handler->override_option('menu', array( 'type' => 'default tab', - 'title' => bts('Active in past 30 days', array(), NULL, 'boinc:account-host-list'), + 'title' => 'Active in past 30 days', 'description' => 'Show only computers that have been active in the past month', 'weight' => '0', 'name' => 'navigation', @@ -5656,7 +5691,7 @@ Cross-project stats: $handler->override_option('path', 'account/%/computers/all'); $handler->override_option('menu', array( 'type' => 'tab', - 'title' => bts('All computers', array(), NULL, 'boinc:account-host-list'), + 'title' => 'All computers', 'description' => 'Show all computers associated with the account', 'weight' => '1', 'name' => 'navigation', @@ -8933,7 +8968,7 @@ else { 'hide_alter_empty' => 1, 'date_format' => 'custom', 'custom_date_format' => 'j M Y G:i:s T', - 'exclude' => 0, + 'exclude' => 1, 'id' => 'create_time', 'table' => 'result', 'field' => 'create_time', @@ -8967,7 +9002,7 @@ else { 'hide_alter_empty' => 1, 'date_format' => 'custom', 'custom_date_format' => 'j M Y G:i:s T', - 'exclude' => 0, + 'exclude' => 1, 'id' => 'sent_time', 'table' => 'result', 'field' => 'sent_time', @@ -9001,7 +9036,7 @@ else { 'hide_alter_empty' => 1, 'date_format' => 'custom', 'custom_date_format' => 'j M Y G:i:s T', - 'exclude' => 0, + 'exclude' => 1, 'id' => 'report_deadline', 'table' => 'result', 'field' => 'report_deadline', @@ -9035,12 +9070,155 @@ else { 'hide_alter_empty' => 1, 'date_format' => 'custom', 'custom_date_format' => 'j M Y G:i:s T', - 'exclude' => 0, + 'exclude' => 1, 'id' => 'received_time', 'table' => 'result', 'field' => 'received_time', 'relationship' => 'none', ), + 'phpcode' => array( + 'label' => 'Created', + 'alter' => array( + 'alter_text' => 0, + 'text' => '', + 'make_link' => 0, + 'path' => '', + 'absolute' => 0, + 'link_class' => '', + 'alt' => '', + 'rel' => '', + 'prefix' => '', + 'suffix' => '', + 'target' => '', + 'help' => '', + 'trim' => 0, + 'max_length' => '', + 'word_boundary' => 1, + 'ellipsis' => 1, + 'html' => 0, + 'strip_tags' => 0, + ), + 'empty' => '', + 'hide_empty' => 0, + 'empty_zero' => 0, + 'hide_alter_empty' => 1, + 'value' => 'result_create_time); +?>', + 'exclude' => 0, + 'id' => 'phpcode', + 'table' => 'customfield', + 'field' => 'phpcode', + 'relationship' => 'none', + ), + 'phpcode_1' => array( + 'label' => 'Sent', + 'alter' => array( + 'alter_text' => 0, + 'text' => '', + 'make_link' => 0, + 'path' => '', + 'absolute' => 0, + 'link_class' => '', + 'alt' => '', + 'rel' => '', + 'prefix' => '', + 'suffix' => '', + 'target' => '', + 'help' => '', + 'trim' => 0, + 'max_length' => '', + 'word_boundary' => 1, + 'ellipsis' => 1, + 'html' => 0, + 'strip_tags' => 0, + ), + 'empty' => '', + 'hide_empty' => 0, + 'empty_zero' => 0, + 'hide_alter_empty' => 1, + 'value' => 'result_sent_time); +?> +', + 'exclude' => 0, + 'id' => 'phpcode_1', + 'table' => 'customfield', + 'field' => 'phpcode', + 'relationship' => 'none', + ), + 'phpcode_8' => array( + 'label' => 'Report deadline', + 'alter' => array( + 'alter_text' => 0, + 'text' => '', + 'make_link' => 0, + 'path' => '', + 'absolute' => 0, + 'link_class' => '', + 'alt' => '', + 'rel' => '', + 'prefix' => '', + 'suffix' => '', + 'target' => '', + 'help' => '', + 'trim' => 0, + 'max_length' => '', + 'word_boundary' => 1, + 'ellipsis' => 1, + 'html' => 0, + 'strip_tags' => 0, + ), + 'empty' => '', + 'hide_empty' => 0, + 'empty_zero' => 0, + 'hide_alter_empty' => 1, + 'value' => 'result_report_deadline); +?> +', + 'exclude' => 0, + 'id' => 'phpcode_8', + 'table' => 'customfield', + 'field' => 'phpcode', + 'relationship' => 'none', + ), + 'phpcode_9' => array( + 'label' => 'Received', + 'alter' => array( + 'alter_text' => 0, + 'text' => '', + 'make_link' => 0, + 'path' => '', + 'absolute' => 0, + 'link_class' => '', + 'alt' => '', + 'rel' => '', + 'prefix' => '', + 'suffix' => '', + 'target' => '', + 'help' => '', + 'trim' => 0, + 'max_length' => '', + 'word_boundary' => 1, + 'ellipsis' => 1, + 'html' => 0, + 'strip_tags' => 0, + ), + 'empty' => '', + 'hide_empty' => 0, + 'empty_zero' => 0, + 'hide_alter_empty' => 1, + 'value' => 'result_received_time); +?> +', + 'exclude' => 0, + 'id' => 'phpcode_9', + 'table' => 'customfield', + 'field' => 'phpcode', + 'relationship' => 'none', + ), 'server_state' => array( 'label' => 'Server state', 'alter' => array( @@ -10852,8 +11030,10 @@ else { 'text' => '', 'make_link' => 0, 'path' => '', + 'absolute' => 0, 'link_class' => '', 'alt' => '', + 'rel' => '', 'prefix' => '', 'suffix' => '', 'target' => '', @@ -10868,14 +11048,50 @@ else { 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, + 'hide_alter_empty' => 1, 'date_format' => 'custom', 'custom_date_format' => 'j M Y G:i:s T', - 'exclude' => 0, + 'exclude' => 1, 'id' => 'create_time', 'table' => 'workunit', 'field' => 'create_time', 'relationship' => 'none', ), + 'phpcode_2' => array( + 'label' => 'Created', + 'alter' => array( + 'alter_text' => 0, + 'text' => '', + 'make_link' => 0, + 'path' => '', + 'absolute' => 0, + 'link_class' => '', + 'alt' => '', + 'rel' => '', + 'prefix' => '', + 'suffix' => '', + 'target' => '', + 'help' => '', + 'trim' => 0, + 'max_length' => '', + 'word_boundary' => 1, + 'ellipsis' => 1, + 'html' => 0, + 'strip_tags' => 0, + ), + 'empty' => '', + 'hide_empty' => 0, + 'empty_zero' => 0, + 'hide_alter_empty' => 1, + 'value' => 'workunit_create_time); +?>', + 'exclude' => 0, + 'id' => 'phpcode_2', + 'table' => 'customfield', + 'field' => 'phpcode', + 'relationship' => 'none', + ), 'canonical_resultid' => array( 'label' => 'Canonical result', 'alter' => array(