Clear old Ci::FinishedBuildChSyncEvent's
What does this MR do and why?
Clear old Ci::FinishedBuildChSyncEvent's
We want to enable the creation of Ci::FinishedBuildChSyncEvent for everyone, see the discussion in !140333 (closed)
But it will create garbage for instances without ClickHouse.
To address this, we simply will drop all the old records after the 1 year.
This way, if users decide to enable the ClickHouse integration, they will have the data for the past year inserted.
Related issue: #424866 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
I relied on tests here
Edited by Vladimir Shushlin