diff options
author | Ben Burgess <88810029+bx80@users.noreply.github.com> | 2021-11-15 23:08:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-15 23:08:08 +0300 |
commit | 556aada80e48f200a10c8dc4673f32e42494b9fe (patch) | |
tree | 1688120ee74c3c2f37698640fd42bc930ffc34b4 /tests/PHPUnit/Integration | |
parent | 271125792563913513b1ec281624ef1122504420 (diff) |
Proportional evolution comparison for incomplete periods (#18099)
* Multisite evolution metrics changed to calculate proportionally to percent of the current period which is complete
* Use piwik date class, use report generated date if available, added unit test, added tooltip
* Improved tooltip detail
* Updated unit tested, added tests for evolution metric getRatio(), changes to allow row metadata to be preserved during datatable merges
* Additional API test fixes
* More test fixes
* More test fixes
* Remove ts_archived row metadata from final API output
* Test fix reversions, added deleteRowsMetadata() method to DataTableInterface
* More test fix reversions
* Fixed integration test
* Trigger Build
* Update core/DataTable/Map.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update core/DataTable.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update core/Archive/DataCollection.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update core/DataTable.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update core/DataTable.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update plugins/CoreHome/Columns/Metrics/EvolutionMetric.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Improved tooltips for translation, use NumberFormatter for percents, moved additional constructor param to end, null checks
* Update plugins/CoreHome/Columns/Metrics/EvolutionMetric.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update plugins/CoreHome/Columns/Metrics/EvolutionMetric.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Use localized period string, remove unnecessary tooltip percent digits
* Formatting fixes
* Fix for an issue where evolution values > 999% would be displayed incorrectly
* Added data table processor option to provide raw copy of formatted metrics
* Update plugins/MultiSites/API.php
Fix for row metadata removed too early
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Replace evolution metrics 'add raw copy' api parameter with _trend column
* ensure to use correct metric to check if lower value is better
* updates expected test files
* fix some more tests
* update test file
Co-authored-by: Stefan Giehl <stefan@matomo.org>
Diffstat (limited to 'tests/PHPUnit/Integration')
-rw-r--r-- | tests/PHPUnit/Integration/ArchiveTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/ArchiveTest.php b/tests/PHPUnit/Integration/ArchiveTest.php index 14caddbcd0..820dfe019c 100644 --- a/tests/PHPUnit/Integration/ArchiveTest.php +++ b/tests/PHPUnit/Integration/ArchiveTest.php @@ -112,6 +112,8 @@ class ArchiveTest extends IntegrationTestCase $archive = Archive::build($idSite, 'day', '2014-05-07'); $metrics = $archive->getNumeric(['ExamplePlugin_archive1metric', 'ExamplePlugin_archive2metric', 'ExamplePlugin_archive3metric']); + unset($metrics['_metadata']); + $expected = [ 'ExamplePlugin_archive1metric' => 1, 'ExamplePlugin_archive2metric' => 2, |