enonic / app-contentstudio-old

Enonic XP - Content Studio app
GNU General Public License v3.0
1 stars 1 forks source link

Dependencies widget is not updated when 'Inbound Dependencies' was changed in the related content #553

Closed sgauruseu closed 5 years ago

sgauruseu commented 5 years ago
  1. Create image-selector content in Features (Do not close the wizard)
  2. Create new shortcut and specify the 'image-selector content ' in shortcut-target
  3. Go to grid

Bug: Expected: new added Incoming Dependency should appear in the widget

Actual: image

When Refresh grid and select the content, Incoming dependency appears:

image

alansemenov commented 5 years ago

We already had a similar bug and we decided we won't fix because of the reasons described here. Basically, in order to track appearance of a new incoming dependency we'd have to listen to update events of every single content item in the storage and for every such update we'd have to make an API request to check if this updated content has a reference to our content. This is too much just for the sake of updating the dependency widget.