Skip to content

Invalidate segment data on update only if the definition changes #17444

@tsteur

Description

@tsteur

In https://github.com/matomo-org/matomo/blob/4.3.0-b2/plugins/SegmentEditor/API.php#L278 we trigger to rearchive the segment whenever it is updated. However, we should only do this if the definition changes (because the meaning of the report changes) or if the autoArchive changes from false/0 to true/1 (because then we'd want to make sure to have all the needed reports for in the past depending on configured setting).

This will be useful as this way we don't invalidate and rearchive reports unnecessarily.

Metadata

Metadata

Assignees

Labels

Help wantedBeginner friendly issues or issues where we'd highly appreciate community's help and involvement.MajorIndicates the severity or impact or benefit of an issue is much higher than normal but not critical.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions