Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable28] fix(files): Close sidebar and update fileid when current node is deleted #45658

Merged
merged 4 commits into from
Jun 10, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Jun 4, 2024

Backport of #44897

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Remove all the empty commits

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot added this to the Nextcloud 28.0.7 milestone Jun 4, 2024
@susnux
Copy link
Contributor

susnux commented Jun 4, 2024

/compile amend/

@susnux susnux marked this pull request as ready for review June 4, 2024 12:00
@susnux
Copy link
Contributor

susnux commented Jun 4, 2024

/compile amend/

@skjnldsv

This comment was marked as resolved.

@skjnldsv skjnldsv added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Jun 7, 2024
@susnux

This comment was marked as resolved.

@susnux susnux added 4. to release Ready to be released and/or waiting for tests to finish and removed 2. developing Work in progress labels Jun 8, 2024
@susnux
Copy link
Contributor

susnux commented Jun 8, 2024

(but somehow the CI decided that stable28 is EOL?)

@skjnldsv
Copy link
Member

skjnldsv commented Jun 8, 2024

  Files: Sidebar
    ✓ opens the sidebar (5536ms)
    ✓ changes the current fileid (4316ms)
    (Attempt 1 of 3) closes the sidebar on delete
    (Attempt 2 of 3) closes the sidebar on delete
    1) closes the sidebar on delete
    (Attempt 1 of 3) changes the fileid on delete
    (Attempt 2 of 3) changes the fileid on delete
    2) changes the fileid on delete


  2 passing (1m)
  2 failing

  1) Files: Sidebar
       closes the sidebar on delete:
     AssertionError: Timed out retrying after 4000ms: Expected to find element: `[data-cy-files-list-row-action="delete"] > button`, but never found it.
      at i (webpack://nextcloud/./cypress/e2e/files/FilesUtils.ts:27:81)
      at Context.eval (webpack://nextcloud/./cypress/e2e/files/files-sidebar.cy.ts:54:8)

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
We do not change the view to the trash bin but stay in the current view,
so we need to update the current fileid on the route if that was deleted.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux merged commit 9286eb3 into stable28 Jun 10, 2024
45 checks passed
@susnux susnux deleted the backport/44897/stable28 branch June 10, 2024 17:01
@blizzz blizzz mentioned this pull request Jun 11, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants