erp5_calendar: Add an interaction to reindex Groups Calendar Assignments when
the related Calendar Exception gets changed
-
Owner
@gabriel I sent that other email before seeing this commit. For reference, the email was:
Interaction is missing on:
- Calendar Exception._set.* (but be care ful Calendar Exception can also exist as subobjects of Leave Period or Presence Request, we should only take care of the case where they are added in Group Presence Period)
- Group Presence Request.manage_delObjects for the case of a deleted Calendar Exception
Another possible improvement here is that these interactions are synchronous, they properly use portal_catalog.searchAndActivate, but the first call to searchAndActivate is also costly and it would be a bit better to activate it as well.
Probably a nice and beautiful unit test is required.
Yes, it's required. I feel that the workflow chain is
Calendar Exception | group_calendar_interaction_workflow
is missing. An unit test would also confirm that.I see that interaction workflow was introducted in a79219bb but I do not find the corresponding unit test. Is it also missing ?
I guess the way to go is to make a merge request for all these calendar reindex interaction workflow problems.
-
mentioned in merge request !261 (closed)
-
mentioned in merge request !631 (merged)