Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2019-03-13 02:16:41 +0300
committerGitHub <noreply@github.com>2019-03-13 02:16:41 +0300
commite26f5e7a359e990b4c4d726de85839e8923619ab (patch)
treec142c489e7c600adef97b7d5ada7bef1f5cdea83 /plugins/SegmentEditor
parent549578d0d34d15bfe4f1048225e29a2e5ad2fb4d (diff)
Add diagnostic to check last time archiving was run successfully and … (#13972)
* Add diagnostic to check last time archiving was run successfully and display notification if empty report and archiving has not been run recently. * Move cron archiving diagnostics next to each other. * Add new test for archiving not done in time check. * Remove TODO comment.
Diffstat (limited to 'plugins/SegmentEditor')
-rw-r--r--plugins/SegmentEditor/SegmentEditor.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/SegmentEditor/SegmentEditor.php b/plugins/SegmentEditor/SegmentEditor.php
index 7d7d7d1b8c..2e03343bd8 100644
--- a/plugins/SegmentEditor/SegmentEditor.php
+++ b/plugins/SegmentEditor/SegmentEditor.php
@@ -17,6 +17,7 @@ use Piwik\DataAccess\ArchiveSelector;
use Piwik\Notification;
use Piwik\Piwik;
use Piwik\Plugins\CoreHome\SystemSummary;
+use Piwik\Plugins\Diagnostics\Diagnostics;
use Piwik\Segment;
use Piwik\SettingsPiwik;
use Piwik\SettingsServer;
@@ -115,6 +116,11 @@ class SegmentEditor extends \Piwik\Plugin
public function onNoData(View $dataTableView)
{
+ // if the archiving hasn't run in a while notification is up, don't display this one
+ if (isset($dataTableView->notifications[Diagnostics::NO_DATA_ARCHIVING_NOT_RUN_NOTIFICATION_ID])) {
+ return;
+ }
+
$segmentInfo = $this->getSegmentIfIsUnprocessed();
if (empty($segmentInfo)) {
return;