@mattab opened this Issue on March 11th 2019 Member

Currently for some reason, core:invalidate-report-data command does not support invalidating date range reports.

As a user, when I use the GDPR controls to delete some visitor data, or in general whenever I delete some wrong data and then I invalidate reports, I'd expect (and need) all reports to be fully invalidated. Currently, "range" reports are not invalidated. So my range reports will still show old data while all others (day, week, month, years) work fine as expected.

The code where it is done: https://github.com/matomo-org/matomo/blob/3.9.0-b3/plugins/CoreAdminHome/Commands/InvalidateReportData.php#L126

  • Was there some reason it is disabled?
  • When calling core:invalidate-report-data without a --periods parameter, it would also automatically invalidate range. This would also 'just work' in the Invalidate Reports plugin

Would be valuable to implement this feature as it would make the feature fully work and not cause people confusion.

@mattab commented on May 16th 2019 Member

Note: as discussed, when we invalidate a date range, we just want to invalidate this exact date range specified. We figured it is not really do-able or needed to invalidate other date ranges which may partially overlap this one.

Powered by GitHub Issue Mirror