Skip to content

Conversation

@marcelklehr
Copy link
Member

@marcelklehr marcelklehr commented Jan 13, 2026

Checklist

@marcelklehr marcelklehr added this to the Nextcloud 32.0.4 milestone Jan 13, 2026
@marcelklehr marcelklehr requested a review from susnux January 13, 2026 09:54
@marcelklehr marcelklehr requested a review from skjnldsv as a code owner January 13, 2026 09:54
@marcelklehr marcelklehr added the 3. to review Waiting for reviews label Jan 13, 2026
@marcelklehr marcelklehr requested a review from a team as a code owner January 13, 2026 09:54
@marcelklehr marcelklehr requested review from szaimen and removed request for a team January 13, 2026 09:54
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@AndyScherzinger AndyScherzinger force-pushed the fix/stable32-update-sidebar-on-rename-node branch from d09ed23 to bfdd5b1 Compare January 18, 2026 16:35
@AndyScherzinger
Copy link
Member

/compile

@AndyScherzinger AndyScherzinger force-pushed the fix/stable32-update-sidebar-on-rename-node branch 3 times, most recently from b610aa1 to 52f15af Compare January 18, 2026 21:41
@AndyScherzinger
Copy link
Member

/compile rebase

@nextcloud-command nextcloud-command force-pushed the fix/stable32-update-sidebar-on-rename-node branch from 52f15af to f7c6e63 Compare January 19, 2026 08:08
@marcelklehr
Copy link
Member Author

@susnux Do I need to touch the cypress tests for this to pass?

@susnux
Copy link
Contributor

susnux commented Jan 22, 2026

Do I need to touch the cypress tests for this to pass?

Normally not, the failing tests indicate that the behavior here has a real regression.
When you work on a node it seems the sidebar now closes and reopens during that and that's pretty bad if you e.g. update a share.

Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Locally I cannot spot any issue using the sidebar, maybe you can try running cypress locally to spot the point it fails

@marcelklehr marcelklehr force-pushed the fix/stable32-update-sidebar-on-rename-node branch 2 times, most recently from d09ed23 to e29ab41 Compare January 27, 2026 10:21
@AndyScherzinger AndyScherzinger force-pushed the fix/stable32-update-sidebar-on-rename-node branch from e29ab41 to 39c5452 Compare January 27, 2026 19:12
@AndyScherzinger
Copy link
Member

/compile

Signed-off-by: nextcloud-command <[email protected]>
@marcelklehr
Copy link
Member Author

mh. It seems to fail to create a directory in a before hook:


  files_sharing: Public share - renaming files
    (Attempt 1 of 3) can rename a file
    (Attempt 2 of 3) can rename a file
    1) "before each" hook for "can rename a file"


  0 passing (22s)
  1 failing

  1) files_sharing: Public share - renaming files
       "before each" hook for "can rename a file":
     Error: Unable to create directory

In my local setup I can't get cypress to run stable32 correctly. It always starts with installing 33.0.0 dev.

I'm somewhat out of depth as I have never run server cypress tests manually.

@susnux
Copy link
Contributor

susnux commented Jan 28, 2026

npm ci
npm run dev
npm run cypress:gui

The tests are related, as soon as the node is updated the sidebar closes and reopens.
But this will also close all open menus inside the sidebar.
E.g. if you create a share the node is updated, but you want to update some of its attributes -> the sidebar quickly close-reopens and now the permissions menu is closed as the component was unmounted for a moment.

The active fileinfo in the sidebar needs to be replaced without closing the sidebar itself.

Bildschirmaufnahme_20260128_140907.webm

@marcelklehr
Copy link
Member Author

marcelklehr commented Jan 28, 2026

And how do you explain Error: Unable to create directory?

@marcelklehr
Copy link
Member Author

I did

npm ci
npm run build
npm run cypress:gui

and couldn't get nextcloud to work because it was telling me I couldn't downgrade from 33.0.0 dev to 32

@susnux
Copy link
Contributor

susnux commented Jan 28, 2026

Maybe only the tests need to be adjusted - it seems like most of the failing use a share cypress helper to create shares.
They:

  1. open side bar
  2. create share
  3. open again
  4. open share details
  5. adjust share

when 4 is triggered the sidebar is still open with the share details. Then the re-open (either 3 or from your changes) happen and the share details are closed, now 5 fails.


So either this happens because of the close+reopen added in this pr or because of the reopen inside the test.
But it is not failing on stable32 so I guess its because of the close + reopen

Bildschirmfoto_20260128_164701 Bildschirmfoto_20260128_164732

So my guess still holds:

  • "Save" will emit a node updated event for the new share
  • you close the sidebar in the listener
  • the sharing tab will close the editing mode
  • you reopen the sidebar
  • the sharing tab now is in overview mode not editing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants