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
path: root/tests
AgeCommit message (Collapse)Author
2021-02-05Refactor segment re-archiving in past behavior to be on demand (#17005)dizzy
* Invalidate past archives on demand when adding/updating segments, rather than trying to check when running core:archive * start on rewriting test * rewrite SegmentArchivingTest and get to pass * get sites as superuser * add update to rearchive segments if they were created/update between last archive time and update time * remove unused parameter * fix build * fix tests * sanity check * fix bug, we should not forget archives to invalidate unless all related archives are being invalidated * fix tests and make fix more complete * fix test * update counts in test * fix test for last time hopefully * fix another test * remove debugging code
2021-02-03updates expected UI filessgiehl
2021-02-02Allow filtering for invalidations for specific reports in core:archive ↵diosmosis
(mostly for automation purposes). (#16991)
2021-01-28Fix timezone issue when using magic date keywords (#17144)Stefan Giehl
* Fix timezone issue when using magic date keywords * improve readability * use Date::factoryInTimezone
2021-01-28use Rules method instead of getting stored segments directly to pre-archive ↵diosmosis
extra segments (#17148) * use Rules method instead of getting stored segments directly * fix some tests
2021-01-21Custom tracking timestamp should return an integer to prevent HTTP 500 ↵Thomas Steur
tracking error (#17127) * Custom tracking timestamp should return an integer to prevent HTTP 500 tracking error Eg ``` curl -i -X POST -d '{"requests":["?idsite=1&rec=1&idgoal=21&apiv=1&_id=50d60fcd18ff0c7e&cdt=1610168419&revenue=0&send_image=0","?idsite=1&rec=1&idgoal=21&apiv=1&_id=50d60fcd18ff0c7e&cdt=1610168419&revenue=0&send_image=0"]}' http://your.site/matomo.php ``` Can trigger an HTTP 500 error when the request is authenticated (or when using a recent timestamp). That's because when for example A/B tests are configured, then it does a `Date::factory($request->getCurrentTimestamp))` where the timestamp is a `string` and thus the Date class would trigger an exception. Making sure we return an integer will fix all possible uses. * fix tests Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
2021-01-20Show site selector as text only when only one site is available (#16972)Stefan Giehl
* Show site selector as text only when only one site is available * updates expected UI files * hide site selector from header when there is only one website overall
2021-01-19Fix build (#17116)diosmosis
* update SecurityInfo plugin to latest * update expected files and fix regression * fix test
2021-01-19Ensure metadata is available if page url can't be found (#16920)Stefan Giehl
* Ensure metadata is available if page url can't be found * removes unused method parameters * Adds some RSS tests * Adds tests that throws exception on 4.x-dev
2021-01-15use karma < 6 (#17100)Stefan Giehl
2021-01-15Introduce PHP CS to improve code quality (#16755)Stefan Giehl
* Adds PHP CS with a basic config * automatically check coding style for pull requests * Disallow usage of eval & create_function and force using Common::safe_unserialize instead of unserialize * Forbid inline control structures * fix test
2021-01-14Add tracking spam prevention plugin as a submodule (#17016)Thomas Steur
* Add tracking spam prevention plugin as a submodule * update submodule * fix some ui tests * fix tests * fix some tests * update submodule * update screenshots * fix ui tests * updates expected UI files Co-authored-by: sgiehl <stefan@matomo.org>
2021-01-13Fix --skip-idsites regression and increment processed site count properly + ↵diosmosis
add test. (#17081)
2021-01-12Make admin menu collapsible (#17073)Stefan Giehl
* Make admin menu collapsible * updates expected UI files * improve/fix menu ui tests * update submodule * updates expected UI files
2021-01-12Use confiugred noreply mail address when sending recovery mails (#17072)Stefan Giehl
2021-01-08updates device detector to latest 4.1.0 (#17064)Stefan Giehl
* updates device detector to latest 4.1.0 * update expected test files
2021-01-08Fix limited visits query when sorting ascending (#17060)Stefan Giehl
* Fix limited visits query when sorting ascending * reactivate test for sorting visits ascending
2021-01-05better fix + update expected screenshots (#17043)diosmosis
2021-01-05Add unit test for ↵diosmosis
QueueConsumer::shouldSkipArchiveBecauseLowerPeriodOrSegmentIsInProgress(). (#16996) * Add unit test for QueueConsumer::shouldSkipArchiveBecauseLowerPeriodOrSegmentIsInProgress(). * move tests to integration
2021-01-05Adds missing report documentations (#16878)Stefan Giehl
* Fix report documentation not shown when switching between related reports * Adds report documentation for DevicesDetection reports * Adds some more report documentations * Adds documentation to Event reports * Adds documentation to Content reports * Adds documentation to VisitorFrequency report * Adds documentation to Goals reports * Adds documentation to VisitsSummary report * fixes & test updates * fix typo Co-authored-by: Lukas Winkler <git@lw1.at> * small tweaks to some docs * revising some of the report documentation * fix translation file * updates expected test files Co-authored-by: Lukas Winkler <git@lw1.at> Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
2021-01-01Add regular expression support to list of user agents to exclude (#16766)Nina Pypchenko
* Add regular expression support to list of user agents to exclude - Added regex support to Administration -> Websites -> Settings -> Global list of user agents to exclude - Made sure old tests that use stripos() pass - Added new tests - Added a sentence to the inline help area about regex support - Fixed a typo elsewhere as specified in the original issue. Closes #14186. Updated method and tests following code review Update plugins/WebsiteMeasurable/MeasurableSettings.php Co-authored-by: Stefan Giehl <stefan@matomo.org> Update system tests * Update screenshots for UI tests affected by the copy changes
2021-01-01Don't accept files that are bigger than the upload limit when uploading ↵Stefan Giehl
plugins (#16849) * Don't accept files that are bigger than the upload limit when uploading plugins * improve / simplify code * adds some tests
2020-12-31Limit max execution time of archiving queries to 2 hours by default (#16971)Stefan Giehl
* Limit max execution time of archiving queries to 2 hours * Adds test for max execution time * cast config value to float * updates expected UI files * update screenshots Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
2020-12-31Assume hidden keywords to be available by default (#16747)Stefan Giehl
* Assume hidden keywords to be available by default * adds a simple system test
2020-12-31Add imprint URL to Template.pageFooter (#16966)Dirk Weise
* Add imprint URL to Template.pageFooter * Remove German translation Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
2020-12-24Fix report showing data of wrong date (#17008)Stefan Giehl
* Use timezone in period factory only for magic keywords * add test * use better timezone * add non-timezone date Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
2020-12-24Better fix for climulti segment encoding bug (#17004)diosmosis
* Segment should not be double encoded when async climulti is unsupported. * better fix for original bug, make sure request command sets query_string since it is used to get the segment * remove use * Use curl requests for core:archive in test. * fix test
2020-12-24Force new visit after 10K actions (#17014)Thomas Steur
* Force new visit after 10K actions * add test * wording * fix ui test
2020-12-24Improve action id lookup for segments (#16977)Stefan Giehl
* Improve action id lookup fog segments if no id can be found for a segment with the normalized value, try looking it up the the original value * Adds UI test for opening vlog with outlink containing a &
2020-12-22fix testsgiehl
2020-12-22fix testssgiehl
2020-12-21Ensure removed dimensions are not used even if they still exist (#16934)Stefan Giehl
2020-12-21Update wikimedia/less.php dependency (#16976)Stefan Giehl
* Update wikimedia/less.php dependency * fix test
2020-12-17Apparently the segment needs to be double encoded when sent in the ↵diosmosis
climulti:request command. (#16947) * Apparently the segment needs to be double encoded when sent in the climulti:request command. * add test * add expected * fix test
2020-12-17Show an error notification in UI when given date/period combination is ↵Stefan Giehl
invalid (#16840) * Show an error notification in UI when given date/period combination is invalid * Adds UI test * unify usage of date/period params from url/hash * updates ui screenshots changed due to the lastindexof change * use indexOf when searching for multiple values * updates submodule * Fix broadcast.getParamValue * remove debug code * Adds some simple tests * improve ui test * do not url decode as it breaks segmentation tests
2020-12-17Fix intersecting period logic so proper archives will archive in parallel. ↵diosmosis
(#16946)
2020-12-16fix: reset(): Argument #1 ($array) must be passed by reference, value given ↵Stefan Giehl
(#16960)
2020-12-15multi_server_environment setting now disallows config edits from Web UI (#16760)Nina Pypchenko
* multi_server_environment setting now disallows config edits from Web UI Turning the multi_server_environment setting on now hides the following settings from the Administration -> Settings -> General settings page: - Archiving settings - Email server - Trusted Matomo hostname - Update settings ...so that users cannot set these separately on different instances of Matomo. Fixes #14390. * Added a note for multi_server_environment setting about shared filesystems * - multi_server_environment now only hides email server settings from the general settings page. - Only making the release channel not writable in CoreUpdater->SystemSettings, and leaving the other settings as before. * Update UI test Updated UIIntegrationTest_admin_diagnostics_configfile.png - with Git LFS this time around.
2020-12-15Remember if process ever started (#16950)Thomas Steur
* Remember if process ever started This can potentially bring a performance improvement as I think sometimes the system would wait for 8 seconds before declaring a process as finished even if it finished after 1s. What happens is in https://github.com/matomo-org/matomo/blob/4.0.5/core/CliMulti.php#L217-L222 it checks if the process has started by checking if the PID file exists. However, the `RequestCommand` deletes the PID file as soon as the process finished to signal "it finished". That means when we check in that loop whether the process has started, it would think it hasn't started yet and simply continue until 8s have past and then it would set the process as finished. Vs we can simply remember that once we say once "the process has started" flag then we can always remember this. I would assume this race condition would happen constantly unless I'm not seeing it right. * fix test
2020-12-15Improve scrolling of dialogs (#16783)Stefan Giehl
* Improve scrolling of dialogs Page will be frozen at the current scroll position and only the dialog will scroll (if too heigh for window) * use $(window).scrollTop() instead of window.scrollY * updates expected ui files
2020-12-14Better detection for end of sharedSiteId queue (#16769)Thomas Steur
* Better detection for end of sharedSiteId queue * simpler solution * simpler solution * use timstamp to detect reset * use timstamp to detect reset * add debug log message * cast to int since we do a strict not equals Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
2020-12-14fix some tests exception handling (#16932)Stefan Giehl
2020-12-11Fix unknown keyword is not shown in transitions report in seach engines ↵Thomas Steur
section (#16841) * Fix unknown keyword is not shown in transitions report in seach engines section * Add test so change will be visible there Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
2020-12-11Adds possibility to configure protocols for allowed outgoing connections ↵Stefan Giehl
(#16910) * Only allow http/https requests by default * ws * improve config name * fix typo * updates expected ui file
2020-12-10Add GTM install guide to "no data tracked yet" page (#16785)Thomas Steur
* Add GTM install guide * update screenshots Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
2020-12-10Use wikimedia/less.php instead of leafo/lessphp (#16813)Stefan Giehl
* use wikimedias less php * fix some less related stuff * fix expected test file * updates expected test file
2020-12-10Allow using last (week|month|year) as date param (#16830)Stefan Giehl
* Allow using last (week|month|year) as date param * Adds some unit tests * improve tests * Make it possible to use last (week|month|year) for api requests * improve test
2020-12-10Harden check for numeric array indices (#16908)Stefan Giehl
2020-12-10Improvements on prepending a plus sign to evolutions (#16923)Stefan Giehl
* fix prepending a plus sign to evolutions * updates expected test files
2020-12-08Avoid inserting duplicates in invalidation table to reduce IO. (#16843)4.0.5-b1diosmosis
* Avoid inserting duplicates in invalidation table to reduce IO. * Limit to given sites to not select too much. * fix build * tweaks to duplicate checking query * more pr feedback * fix cron archive test