ocis icon indicating copy to clipboard operation
ocis copied to clipboard

Activity: folder variable missing if folder renamed

Open kulmann opened this issue 1 year ago • 1 comments

Describe the bug

If I rename a folder, the activity events loose context, see screenshot.

Steps to reproduce

  1. Create a folder "test"
  2. Create a subfolder "subtest"
  3. Open the activities sidebar panel for "test"

Expected behavior

Old activity events still show the old folder name from before the rename

Actual behavior

The folder context is missing entirely (see screenshot)

Screenshot 2024-09-24 at 13 12 50

kulmann avatar Sep 24 '24 11:09 kulmann

It happens because the old ref.Path that we keep in the event is not relevant for getting the resource information after renaming. We can use the part of the path for that. But it will not work when the resource id has been used for renaming (MOVE) FYI @kobergj

2403905 avatar Sep 24 '24 15:09 2403905