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-21 06:01:39 +0300
committerGitHub <noreply@github.com>2022-10-21 06:01:39 +0300
commit9b15c89ea7ddc711e248a6bcbf0847923d0cfe15 (patch)
tree392435f91b897408ae29c2a58ea45fc92b1f91e3
parenta758efe48b9d388001246bf5c0b4df46cd37f87d (diff)
Pg 820 pass segment (#19890)
* 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.md3
-rw-r--r--core/Archive/ArchiveInvalidator.php6
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 80f1f3b635..92a0ac8b5c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,9 @@ The Product Changelog at **[matomo.org/changelog](https://matomo.org/changelog)*
* Requests to ASPSMS and Clockwork API do no longer accept invalid SSL certificates. If you experience problems with mobile messaging please check your SSL setup.
+### 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