Flowpack / media-ui

The development repository for the new Neos media management interface
GNU General Public License v3.0
20 stars 16 forks source link

BUG: Moved asset only appears in target collection after reload #204

Open lorenzulrich opened 9 months ago

lorenzulrich commented 9 months ago

Description

If an asset is "moved" from one collection to another, it is not visible in the target collection without a reload of the module.

Steps to Reproduce

  1. Create at least two collections A (first level) and B (second level).
  2. Upload file to collection B.
  3. Click file in collection B and select collection A as "Collection".

Expected behavior

Actual behavior

This only happens when moving a file up in the hierarchy, in my case from collection B to A. Moving from A to B works flawlessly.

Affected Versions

Neos: 8.3 UI: 8.3.4 Media Module: 0.13

lorenzulrich commented 9 months ago

It also seems that the state of the footer is not properly updated. It still shows "1 assets" and the pagination:

image

Sebobo commented 9 months ago

In theory I have all necessary cache flushes in place. It might be the assets list of the parent is still cached and I need to flush it separately. Will need further investigation.

Sebobo commented 1 week ago

This bug is really a bit annoying as it doesn't happen every time. Some timing issue when the various instances and caches are being updated.