-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
When deleting visits via the GDPR Tools, invalidate the reports for each day of these deleted visits #14195
Comments
@mattab do we need to take log deletion setting into consideration? If we invalidate a report, will the invalidated report eventually disappear or do we keep the report if there is no final report? Otherwise we risk some reports cannot be regenerated? |
ping @mattab |
To invalidate, we want to use the method |
We delete the dates based on When we pass the |
AFAIK the API which invalidates reports checks when the first logs are available and if the logs are deleted for this date, the reports won't be invalidated. So we shouldn't have to worry about it. |
so basically, if someone deletes a visit, and a user expects this data to be deleted from reports, it won't be actually deleted @mattab ? I don't think it's what users expect, at the same time deleting those reports is also not what people expect :) |
My comment was unclear... What i meant is: the API which invalidates reports checks the date-time of the oldest logs and if the date to invalidate reports for is older than this date-time then the reports are not invalidated (because we know there is no logs to re-archive reports). Since when we delete a visit it means there are still logs for this day for sure, it should always result in an invalidation down the line. |
@mattab that's clear. The problem is when you delete a visit of 12 months ago, and log deletion is set to 6 months... then the archive won't be invalidated/deleted but a user would expect the data to be removed from that archive. |
It's an edge case though and don't really need to think about it. Be only an issue when deleting visits and for those visits log purging hasn't happened just yet. Guess it's more like about deleting older reports that contain personal data but that's a different issue. |
This is a frequent bug report. When deleting visits via the GDPR Tools then the deleted visits still show up in the reports.
The goal of this issue is that, whenever some visits are deleted then we also should call the Invalidate Reports code. As a result, next time
core:archive
will run all of the reports for the invalidated days (and the week, month, year) will be reprocessed, and the deleted data will be reflected in the reports (ie. not visible anymore).(this will also benefit Cloud customers since invalidating old reports is disabled on Cloud yet sometimes we really need some data to be deleted)
Also in the UI we can remove the text
In this case you may want to consider to invalidate reports after deleting these visits.
since it will now be done automatically.The text was updated successfully, but these errors were encountered: