- Issue created by @esomething
- Assigned to esomething
- Merge request !118Issue 3444258 : Validate rule before calling getParentEntity β (Merged) created by esomething
- Issue was unassigned.
- First commit to issue fork.
- Status changed to Needs review
11 months ago 7:14am 30 April 2024 - π¨π¦Canada mandclu
Thanks for identifying this, and for providing a fix. I updated the code to resolve the issues identified by the CI, and I refactored the new validateRule() method to make the logic easier to follow.
Please validate that the result still works for your use case.
Thank you for doing the code cleanup. I've created patches but this was my first MR.
It all looks good to me. I just made a couple of minor changes to the comments in the code to reflect the refactoring.
-
mandclu β
committed 236f9c98 on 4.1.x authored by
esomething β
Issue #3444258 by mandclu, esomething: getParentEntity in SmartDateRule...
-
mandclu β
committed 236f9c98 on 4.1.x authored by
esomething β
- Status changed to Fixed
11 months ago 12:25pm 3 May 2024 - π¨π¦Canada mandclu
Great. Merged in, and should have a new release out shortly.
- π¨π¦Canada mandclu
@esomething please don't open a new MR on an issue that's already merged. Your changes seem worthwhile so please open a new issue for them.
Sorry for that. Would you prefer a new MR or a new issue ticket?
- π¨π¦Canada mandclu
If you could file a new issue that would be great. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.
- πΊπΈUnited States foodslover
Based on a client request, I developed a patch to facilitate the bulk deletion of events older than 365 days. This patch includes configurable parameters to streamline the cleanup process, making it a valuable tool for anyone needing to manage outdated events efficiently.
Key Features:
- - Bulk deletion of outdated events while preserving recent ones.
- - Automatic removal of expired recurrence rules that are no longer in use.
- - Updates to recurring events to ensure accurate start and end dates.
- - Email summary reports generated upon completion for tracking and verification.
Usage:
To execute the cleanup, run the following Drush command:
```sh
drush smart_date_recur:prune-old-events 365 field_name event email_Address
```Note: Please remember to run `drush cr` after executing this command to ensure that the changes are reflected on the node editing page.