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:
authorAltamash Shaikh <altu9594@gmail.com>2022-10-20 03:37:25 +0300
committerGitHub <noreply@github.com>2022-10-20 03:37:25 +0300
commitaa379e1a80df26e2410f23672c717c4f32a1019f (patch)
treec03a20c822a53b7e7296fbb30cb68954482e59fc
parent16e89dd1f34607601b2a8c2c64ea80667ac4cff1 (diff)
Added support to pass segment in Archiving.getIdSitesToMarkArchivesAsInvalidated event (#19876)
* Added support to pass segment in Archiving.getIdSitesToMarkArchivesAsInvalidated event, #PG-820 * Started passing dates,day and period paramters too * Started passing the name parameter too * built vue files * Updated CHANGELOG.md Co-authored-by: AltamashShaikh <AltamashShaikh@users.noreply.github.com>
-rw-r--r--CHANGELOG.md5
-rw-r--r--core/Archive/ArchiveInvalidator.php6
2 files changed, 10 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 057d468bdc..fd6df81054 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,11 @@ This is the Developer Changelog for Matomo platform developers. All changes in o
The Product Changelog at **[matomo.org/changelog](https://matomo.org/changelog)** lets you see more details about any Matomo release, such as the list of new guides and FAQs, security fixes, and links to all closed issues.
+## Matomo 5.0.0
+
+### Archiving
+* When posting the event `Archiving.getIdSitesToMarkArchivesAsInvalidated` started passing date, period ,segment and name parameter along with idSites parameter.
+
## Matomo 4.12.0
### Breaking Changes
diff --git a/core/Archive/ArchiveInvalidator.php b/core/Archive/ArchiveInvalidator.php
index eb8a7646ee..1d31234fb9 100644
--- a/core/Archive/ArchiveInvalidator.php
+++ b/core/Archive/ArchiveInvalidator.php
@@ -309,8 +309,12 @@ class ArchiveInvalidator
* }
*
* @param array &$idSites An array containing a list of site IDs which are requested to be invalidated.
+ * @param array $dates An array containing the dates to invalidate.
+ * @param string $period A string containing the period to be invalidated.
+ * @param Segment $segment A Segment Object containing segment to invalidate.
+ * @param string $name A string containing the name of the archive to be invalidated.
*/
- Piwik::postEvent('Archiving.getIdSitesToMarkArchivesAsInvalidated', array(&$idSites));
+ Piwik::postEvent('Archiving.getIdSitesToMarkArchivesAsInvalidated', array(&$idSites, $dates, $period, $segment, $name));
// we trigger above event on purpose here and it is good that the segment was created like
// `new Segment($segmentString, $idSites)` because when a user adds a site via this event, the added idSite
// might not have this segment meaning we avoid a possible error. For the workflow to work, any added or removed