New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New plugin: provide simple UI to invalidate old reports #8942
Comments
From a user POV, I would say we don't want to "invalidate" anything. We really want to "recreate reports" or re-generate", "reconstitute" reports. The action to invalidate is a side-effect hidden under the hood.
I know we can't estimate time or CPU needed but maybe add a generic warning for exemple if the period is more than X days if entire DB is > 1 GB ? |
I started to write a response this morning. The only reason I have used the invalidate feature, is because I needed to recreate an historic report, or archive a new segment for a certain period. It's more about the need to force archiving a segment or period. New segments are not archived from the very first date of tracking, for performance reasons. By being able to force archiving a fine grained set of data, we keep the load to a minimum and still be able to provide the requester their reports. |
Hi @sgiehl Updated the description/spec, could you take a look? |
We can do that for the first version, but we defiantly need to do that better way later. If purging old log data is active, invalidating old reports could remove data that can't be reprocessed. So maybe it would be better to check for which day log data is available and leave all older data untouched... |
It should already be implemented, see method |
Plugin will soon be published: https://github.com/piwik/plugin-InvalidateReports |
Plugin available here: https://plugins.piwik.org/InvalidateReports |
Our goal is to create a new open source plugin that will let Super Users easily invalidate any report in Piwik. This will provide a user friendly way to make this frequent action.
Proposal
Invalidate historical reports
and for segment $segmentName
and for all Segments.
CoreAdminHome.invalidateArchivedReports
is called with those parameters that user confirmed$websiteCreationTime,today
to invalidate all reports (methodgetCreationDateFor
)$earliestWebsiteCreationTime,today
to invalidate all reports (use methodgetMinMaxDateAcrossWebsites
)period
to false so that all periods are invalidatedpiwik/plugin-InvalidateReports
or soNotes
The text was updated successfully, but these errors were encountered: