Task #1933
closed
Create LRT for remove old notifications.
Added by Radek Tomiška about 5 years ago.
Updated about 5 years ago.
Description
Create LRT for remove old notifications (all types) and related recipients.
Files
- Status changed from In Progress to Needs feedback
- Assignee changed from Radek Tomiška to Vít Švanda
- % Done changed from 0 to 90
I did review and test. Works correctly.
I disovered only one strange behavior in count of deleted notifications. I deleted all notifications older then 360 days. Initial count in LRT was 270 but on the end were deleted only 244 notifications (without any exceptions). I do not see reason why is count different in this cause.
Second executing of the same LRT didn't delete any notifications.
The reason is, if the parent notification is deleted before children and children is deleted too with the parent (cascade). Then is counter not incremented (childen is not found in the next page). I'll try to add sort by parent to ensure child is deleted at first.
- Status changed from In Progress to Needs feedback
- Assignee changed from Radek Tomiška to Vít Švanda
- Status changed from Needs feedback to Resolved
- Assignee changed from Vít Švanda to Radek Tomiška
- % Done changed from 90 to 100
I tested it. Start and end count match now, thanks for that.
- Status changed from Resolved to Closed
Also available in: Atom
PDF