You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate annotations to a separate db table, update model, update tests (#23564)
* Create a model for annotations in a separate db table
* Add index in a separate db call
* Update version to 5.5.0-b2
* Update controller to work with slightly changed API
* Update test suite and API to work together correctly
* Use custom migrations to migrate and purge annotations
* Adjust sanitisation to sanitise on annotation output
* Update PHPStan baseline
* Add system test for annotation add
* Allow to test APIs without providing a date
* Add system test for Annotations.getAll API call when no date is provided
* Ensure we handle today/yesterday dates correctly when adding/saving annotations
* Add tests for today/yesterday date handling
* Add annotations with potentially harmful characters/strings
* Add annotations UI test to cover potentially dangerous characters
---------
Co-authored-by: Nathan Gavin <nathangavin987@gmail.com>
Co-authored-by: Marc Neudert <marc@innocraft.com>
message:"#^Parameter \\#5 \\$starred of method Piwik\\\\Plugins\\\\Annotations\\\\AnnotationList\\:\\:update\\(\\) expects int\\|null, bool\\|null given\\.$#"
3733
-
count:1
3734
-
path:plugins/Annotations/API.php
3735
-
3736
-
-
3737
-
message:"#^Cannot call method getTimestamp\\(\\) on string\\|false\\.$#"
3738
-
count:1
3739
-
path:plugins/Annotations/AnnotationList.php
3740
-
3741
-
-
3742
-
message:"#^Method Piwik\\\\Plugins\\\\Annotations\\\\Annotations\\:\\:getDateRangeForPeriod\\(\\) should return array\\<Piwik\\\\Date\\> but returns array\\<int, false\\>\\.$#"
3743
-
count:1
3744
-
path:plugins/Annotations/Annotations.php
3745
-
3746
3721
-
3747
3722
message:"#^Parameter \\#1 \\$array of function reset is passed by reference, so it expects variables only\\.$#"
0 commit comments