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>2018-09-21 01:53:37 +0300
committerGitHub <noreply@github.com>2018-09-21 01:53:37 +0300
commit2d2abcc9576079a8496ad8bd4a038ba07cf1fb2b (patch)
tree511d4c06b004d8162fb3cd2480252c25caa13a63 /plugins/Ecommerce
parenta7f5d6478cfcff4cb2b9a19b40f2b526da8f1eea (diff)
Send email if no tracked data within N days. (#13363)
* Remember user who created a site. * Send email if no tracked data within N days. * Add test and get to pass. * Fixes after manual tests of emails * Bump version & change column name to creator_login. * Email tweaks. * Rename Site::getCreationUserFor * Modify Site:: access methiod name * Applying PR feedback. * Move email HTML content generation logic to separate class in DI. * tweak translations * Apply PR review feedback. * Couple more tweaks. * Make tracking code check a one time task + and save timetable when removing inactive tasks. * Update save call. * Apply more PR feedback. * small performance tweak and put the site name in quotes * Fixing tests. * Update expected file.
Diffstat (limited to 'plugins/Ecommerce')
-rw-r--r--plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_row_evolution_graph__ScheduledReports.generateReport_week.original.html45
-rw-r--r--plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_tables_and_graph__ScheduledReports.generateReport_week.original.html45
-rw-r--r--plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_tables_only__ScheduledReports.generateReport_week.original.html45
3 files changed, 69 insertions, 66 deletions
diff --git a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_row_evolution_graph__ScheduledReports.generateReport_week.original.html b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_row_evolution_graph__ScheduledReports.generateReport_week.original.html
index 4fb7a6af4a..7b4336740a 100644
--- a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_row_evolution_graph__ScheduledReports.generateReport_week.original.html
+++ b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_row_evolution_graph__ScheduledReports.generateReport_week.original.html
@@ -7,26 +7,27 @@
<meta name="generator" content="Matomo Analytics">
</head>
-<body style="color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif; line-height: 24px; margin:0 auto; max-width:1000px; background-color:rgb(255, 255, 255);box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.75);">
+<body style="color:&#x23;0d0d0d;font-family:-apple-system,&#x20;BlinkMacSystemFont,&#x20;&#x27;Segoe&#x20;UI&#x27;,&#x20;Roboto,&#x20;Oxygen-Sans,&#x20;Cantarell,&#x20;&#x27;Helvetica&#x20;Neue&#x27;,&#x20;sans-serif; line-height: 24px; margin:0 auto; max-width:1000px; background-color:rgb(255, 255, 255);box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.75);">
- <a name="reportTop"></a>
+<a name="reportTop"></a>
- <table style="width:100%; background-color: #37474f; color: #fff; padding:10px 0; margin: 0 0 25px 0; height:64px;">
+<table style="width:100%; background-color: &#x23;37474f; color: &#x23;fff; padding:10px 0; margin: 0 0 25px 0; height:64px;">
<tr>
- <td>
- <a style="color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif;; font-size:16px;padding:0 15px;color: #fff;height: 22px;display: inline-block;vertical-align: inherit;" rel="noreferrer noopener" target="_blank" href="http://example.com/piwik/tests/PHPUnit/proxy/" style="lineheight:17px">
- <img src="http://example.com/piwik/tests/PHPUnit/proxy//plugins/Morpheus/images/logo-email.png" height="20px" width="auto" alt="Matomo, free/libre analytics platform" />
- </a>
- </td>
- <td align="right">
- <a style="color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif;; font-size:16px; padding:0 15px; color: #fff" title="View Web Analytics reports for Piwik test." target="_blank" href="http://example.com/piwik/tests/PHPUnit/proxy/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today-date-removed-in-tests">
- Dashboard
- </a>
- </td>
+ <td>
+ <a style="color:&#x23;0d0d0d;font-family:-apple-system,&#x20;BlinkMacSystemFont,&#x20;&#x27;Segoe&#x20;UI&#x27;,&#x20;Roboto,&#x20;Oxygen-Sans,&#x20;Cantarell,&#x20;&#x27;Helvetica&#x20;Neue&#x27;,&#x20;sans-serif;; font-size:16px;padding:0 15px;color: &#x23;fff;height: 22px;display: inline-block;vertical-align: inherit;" rel="noreferrer noopener" target="_blank" href="http://example.com/piwik/tests/PHPUnit/proxy/" style="lineheight:17px">
+ <img src="http://example.com/piwik/tests/PHPUnit/proxy//plugins/Morpheus/images/logo-email.png" height="20px" width="auto" alt="Matomo,&#x20;free&#x2F;libre&#x20;analytics&#x20;platform" />
+ </a>
+ </td>
+ <td align="right">
+ <a style="color:&#x23;0d0d0d;font-family:-apple-system,&#x20;BlinkMacSystemFont,&#x20;&#x27;Segoe&#x20;UI&#x27;,&#x20;Roboto,&#x20;Oxygen-Sans,&#x20;Cantarell,&#x20;&#x27;Helvetica&#x20;Neue&#x27;,&#x20;sans-serif;; font-size:16px; padding:0 15px; color: &#x23;fff" title="View Web Analytics reports for Piwik test." target="_blank" href="http://example.com/piwik/tests/PHPUnit/proxy/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today-date-removed-in-tests">
+ Dashboard
+ </a>
+ </td>
</tr>
- </table>
+</table>
+
+<div style="margin:0 20px;">
- <div style="margin:0 20px;">
<h2 style='color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif; color:#37474f; line-height:30px; margin:25px 0 15px 0;'>
Hello,
</h2>
@@ -56,14 +57,14 @@
Back to top &#8593;
</a></p>
- <hr style=" border: 0; margin-top: 50px; height: 1px; background-image: linear-gradient(to right, rgba(231, 231, 231, 0), rgba(231, 231, 231, 1), rgba(2311, 2311, 231, 0));">
+ <hr style=" border: 0; margin-top: 50px; height: 1px; background-image: linear-gradient(to right, rgba(231, 231, 231, 0), rgba(231, 231, 231, 1), rgba(2311, 2311, 231, 0));">
- <p style='font-size:15px;line-height:24px;margin:0 0 16px;color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen-Sans, Cantarell, &quot;Helvetica Neue&quot;, sans-serif; text-align:center;font-size:13px; color:#666; padding:30px'>
- Powered by
- <a style="color:#439fe0; " href="https://matomo.org/" title="Matomo Analytics">Matomo Analytics</a>
- <br />
- The leading open analytics platform that respects your privacy.
- </p>
+ <p style='font-size:15px;line-height:24px;margin:0 0 16px;color:&#x23;0d0d0d;font-family:-apple-system,&#x20;BlinkMacSystemFont,&#x20;&#x27;Segoe&#x20;UI&#x27;,&#x20;Roboto,&#x20;Oxygen-Sans,&#x20;Cantarell,&#x20;&#x27;Helvetica&#x20;Neue&#x27;,&#x20;sans-serif;text-align:center;font-size:13px; color:#666; padding:30px'>
+ Powered by
+ <a style="color:#439fe0; " href="https://matomo.org/" title="Matomo Analytics">Matomo Analytics</a>
+ <br />
+ The leading open analytics platform that respects your privacy.
+ </p>
</div>
</body>
diff --git a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_tables_and_graph__ScheduledReports.generateReport_week.original.html b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_tables_and_graph__ScheduledReports.generateReport_week.original.html
index b1fedf85f1..546f02fbd2 100644
--- a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_tables_and_graph__ScheduledReports.generateReport_week.original.html
+++ b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_tables_and_graph__ScheduledReports.generateReport_week.original.html
@@ -7,26 +7,27 @@
<meta name="generator" content="Matomo Analytics">
</head>
-<body style="color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif; line-height: 24px; margin:0 auto; max-width:1000px; background-color:rgb(255, 255, 255);box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.75);">
+<body style="color:&#x23;0d0d0d;font-family:-apple-system,&#x20;BlinkMacSystemFont,&#x20;&#x27;Segoe&#x20;UI&#x27;,&#x20;Roboto,&#x20;Oxygen-Sans,&#x20;Cantarell,&#x20;&#x27;Helvetica&#x20;Neue&#x27;,&#x20;sans-serif; line-height: 24px; margin:0 auto; max-width:1000px; background-color:rgb(255, 255, 255);box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.75);">
- <a name="reportTop"></a>
+<a name="reportTop"></a>
- <table style="width:100%; background-color: #37474f; color: #fff; padding:10px 0; margin: 0 0 25px 0; height:64px;">
+<table style="width:100%; background-color: &#x23;37474f; color: &#x23;fff; padding:10px 0; margin: 0 0 25px 0; height:64px;">
<tr>
- <td>
- <a style="color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif;; font-size:16px;padding:0 15px;color: #fff;height: 22px;display: inline-block;vertical-align: inherit;" rel="noreferrer noopener" target="_blank" href="http://example.com/piwik/tests/PHPUnit/proxy/" style="lineheight:17px">
- <img src="http://example.com/piwik/tests/PHPUnit/proxy//plugins/Morpheus/images/logo-email.png" height="20px" width="auto" alt="Matomo, free/libre analytics platform" />
- </a>
- </td>
- <td align="right">
- <a style="color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif;; font-size:16px; padding:0 15px; color: #fff" title="View Web Analytics reports for Piwik test." target="_blank" href="http://example.com/piwik/tests/PHPUnit/proxy/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today-date-removed-in-tests">
- Dashboard
- </a>
- </td>
+ <td>
+ <a style="color:&#x23;0d0d0d;font-family:-apple-system,&#x20;BlinkMacSystemFont,&#x20;&#x27;Segoe&#x20;UI&#x27;,&#x20;Roboto,&#x20;Oxygen-Sans,&#x20;Cantarell,&#x20;&#x27;Helvetica&#x20;Neue&#x27;,&#x20;sans-serif;; font-size:16px;padding:0 15px;color: &#x23;fff;height: 22px;display: inline-block;vertical-align: inherit;" rel="noreferrer noopener" target="_blank" href="http://example.com/piwik/tests/PHPUnit/proxy/" style="lineheight:17px">
+ <img src="http://example.com/piwik/tests/PHPUnit/proxy//plugins/Morpheus/images/logo-email.png" height="20px" width="auto" alt="Matomo,&#x20;free&#x2F;libre&#x20;analytics&#x20;platform" />
+ </a>
+ </td>
+ <td align="right">
+ <a style="color:&#x23;0d0d0d;font-family:-apple-system,&#x20;BlinkMacSystemFont,&#x20;&#x27;Segoe&#x20;UI&#x27;,&#x20;Roboto,&#x20;Oxygen-Sans,&#x20;Cantarell,&#x20;&#x27;Helvetica&#x20;Neue&#x27;,&#x20;sans-serif;; font-size:16px; padding:0 15px; color: &#x23;fff" title="View Web Analytics reports for Piwik test." target="_blank" href="http://example.com/piwik/tests/PHPUnit/proxy/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today-date-removed-in-tests">
+ Dashboard
+ </a>
+ </td>
</tr>
- </table>
+</table>
+
+<div style="margin:0 20px;">
- <div style="margin:0 20px;">
<h2 style='color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif; color:#37474f; line-height:30px; margin:25px 0 15px 0;'>
Hello,
</h2>
@@ -7110,14 +7111,14 @@
There is no data for this report.
- <hr style=" border: 0; margin-top: 50px; height: 1px; background-image: linear-gradient(to right, rgba(231, 231, 231, 0), rgba(231, 231, 231, 1), rgba(2311, 2311, 231, 0));">
+ <hr style=" border: 0; margin-top: 50px; height: 1px; background-image: linear-gradient(to right, rgba(231, 231, 231, 0), rgba(231, 231, 231, 1), rgba(2311, 2311, 231, 0));">
- <p style='font-size:15px;line-height:24px;margin:0 0 16px;color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen-Sans, Cantarell, &quot;Helvetica Neue&quot;, sans-serif; text-align:center;font-size:13px; color:#666; padding:30px'>
- Powered by
- <a style="color:#439fe0; " href="https://matomo.org/" title="Matomo Analytics">Matomo Analytics</a>
- <br />
- The leading open analytics platform that respects your privacy.
- </p>
+ <p style='font-size:15px;line-height:24px;margin:0 0 16px;color:&#x23;0d0d0d;font-family:-apple-system,&#x20;BlinkMacSystemFont,&#x20;&#x27;Segoe&#x20;UI&#x27;,&#x20;Roboto,&#x20;Oxygen-Sans,&#x20;Cantarell,&#x20;&#x27;Helvetica&#x20;Neue&#x27;,&#x20;sans-serif;text-align:center;font-size:13px; color:#666; padding:30px'>
+ Powered by
+ <a style="color:#439fe0; " href="https://matomo.org/" title="Matomo Analytics">Matomo Analytics</a>
+ <br />
+ The leading open analytics platform that respects your privacy.
+ </p>
</div>
</body>
diff --git a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_tables_only__ScheduledReports.generateReport_week.original.html b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_tables_only__ScheduledReports.generateReport_week.original.html
index c36012bdfc..027b24bacb 100644
--- a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_tables_only__ScheduledReports.generateReport_week.original.html
+++ b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_scheduled_report_in_html_tables_only__ScheduledReports.generateReport_week.original.html
@@ -7,26 +7,27 @@
<meta name="generator" content="Matomo Analytics">
</head>
-<body style="color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif; line-height: 24px; margin:0 auto; max-width:1000px; background-color:rgb(255, 255, 255);box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.75);">
+<body style="color:&#x23;0d0d0d;font-family:-apple-system,&#x20;BlinkMacSystemFont,&#x20;&#x27;Segoe&#x20;UI&#x27;,&#x20;Roboto,&#x20;Oxygen-Sans,&#x20;Cantarell,&#x20;&#x27;Helvetica&#x20;Neue&#x27;,&#x20;sans-serif; line-height: 24px; margin:0 auto; max-width:1000px; background-color:rgb(255, 255, 255);box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.75);">
- <a name="reportTop"></a>
+<a name="reportTop"></a>
- <table style="width:100%; background-color: #37474f; color: #fff; padding:10px 0; margin: 0 0 25px 0; height:64px;">
+<table style="width:100%; background-color: &#x23;37474f; color: &#x23;fff; padding:10px 0; margin: 0 0 25px 0; height:64px;">
<tr>
- <td>
- <a style="color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif;; font-size:16px;padding:0 15px;color: #fff;height: 22px;display: inline-block;vertical-align: inherit;" rel="noreferrer noopener" target="_blank" href="http://example.com/piwik/tests/PHPUnit/proxy/" style="lineheight:17px">
- <img src="http://example.com/piwik/tests/PHPUnit/proxy//plugins/Morpheus/images/logo-email.png" height="20px" width="auto" alt="Matomo, free/libre analytics platform" />
- </a>
- </td>
- <td align="right">
- <a style="color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif;; font-size:16px; padding:0 15px; color: #fff" title="View Web Analytics reports for Piwik test." target="_blank" href="http://example.com/piwik/tests/PHPUnit/proxy/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today-date-removed-in-tests">
- Dashboard
- </a>
- </td>
+ <td>
+ <a style="color:&#x23;0d0d0d;font-family:-apple-system,&#x20;BlinkMacSystemFont,&#x20;&#x27;Segoe&#x20;UI&#x27;,&#x20;Roboto,&#x20;Oxygen-Sans,&#x20;Cantarell,&#x20;&#x27;Helvetica&#x20;Neue&#x27;,&#x20;sans-serif;; font-size:16px;padding:0 15px;color: &#x23;fff;height: 22px;display: inline-block;vertical-align: inherit;" rel="noreferrer noopener" target="_blank" href="http://example.com/piwik/tests/PHPUnit/proxy/" style="lineheight:17px">
+ <img src="http://example.com/piwik/tests/PHPUnit/proxy//plugins/Morpheus/images/logo-email.png" height="20px" width="auto" alt="Matomo,&#x20;free&#x2F;libre&#x20;analytics&#x20;platform" />
+ </a>
+ </td>
+ <td align="right">
+ <a style="color:&#x23;0d0d0d;font-family:-apple-system,&#x20;BlinkMacSystemFont,&#x20;&#x27;Segoe&#x20;UI&#x27;,&#x20;Roboto,&#x20;Oxygen-Sans,&#x20;Cantarell,&#x20;&#x27;Helvetica&#x20;Neue&#x27;,&#x20;sans-serif;; font-size:16px; padding:0 15px; color: &#x23;fff" title="View Web Analytics reports for Piwik test." target="_blank" href="http://example.com/piwik/tests/PHPUnit/proxy/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today-date-removed-in-tests">
+ Dashboard
+ </a>
+ </td>
</tr>
- </table>
+</table>
+
+<div style="margin:0 20px;">
- <div style="margin:0 20px;">
<h2 style='color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif; color:#37474f; line-height:30px; margin:25px 0 15px 0;'>
Hello,
</h2>
@@ -6746,14 +6747,14 @@
There is no data for this report.
- <hr style=" border: 0; margin-top: 50px; height: 1px; background-image: linear-gradient(to right, rgba(231, 231, 231, 0), rgba(231, 231, 231, 1), rgba(2311, 2311, 231, 0));">
+ <hr style=" border: 0; margin-top: 50px; height: 1px; background-image: linear-gradient(to right, rgba(231, 231, 231, 0), rgba(231, 231, 231, 1), rgba(2311, 2311, 231, 0));">
- <p style='font-size:15px;line-height:24px;margin:0 0 16px;color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen-Sans, Cantarell, &quot;Helvetica Neue&quot;, sans-serif; text-align:center;font-size:13px; color:#666; padding:30px'>
- Powered by
- <a style="color:#439fe0; " href="https://matomo.org/" title="Matomo Analytics">Matomo Analytics</a>
- <br />
- The leading open analytics platform that respects your privacy.
- </p>
+ <p style='font-size:15px;line-height:24px;margin:0 0 16px;color:&#x23;0d0d0d;font-family:-apple-system,&#x20;BlinkMacSystemFont,&#x20;&#x27;Segoe&#x20;UI&#x27;,&#x20;Roboto,&#x20;Oxygen-Sans,&#x20;Cantarell,&#x20;&#x27;Helvetica&#x20;Neue&#x27;,&#x20;sans-serif;text-align:center;font-size:13px; color:#666; padding:30px'>
+ Powered by
+ <a style="color:#439fe0; " href="https://matomo.org/" title="Matomo Analytics">Matomo Analytics</a>
+ <br />
+ The leading open analytics platform that respects your privacy.
+ </p>
</div>
</body>