generated from Kentico/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Description
In some cases, it is necessary to re-index related items when a web page or content item is updated or deleted.
Currently, this works correctly for updates. However, it is not possible to retrieve related items on deletion - the Kentico ContentQueryExecutor with the Linking method returns an empty collection in this scenario.
To Reproduce
Steps to reproduce the behavior:
- Create a content(or web page) type
- Add a field for selecting related items.
- Create an item of newly created type and select a related item
- Delete the selected related item.
- Try to call ContentQueryExecutor like this ContentItemQueryBuilder().ForContentType(type,
config=>config.Linking(filedName, new []{linkinId}))
Expected behavior
It would be helpful if the IIndexEventItemModel provided a collection of related item IDs (and possibly their types) during deletion events.
Copilot