Skip to content

[full-ci] Files and folder won't be deleted from the "shared with others" section #40497

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

Merged
merged 4 commits into from
Jan 19, 2023

Conversation

jvillafanez
Copy link
Member

Description

The "delete" action from the "shared with others" section might be confusing because it will delete the file or folder instead of unsharing it.
Unsharing might also be problematic as action because the file or folder might be shared with multiple people, or it could also be shared by link. Unsharing might mean that all of those connections will be removed, which might include or not the links. This also seems confusing.

The plan is to remove the delete action from that section.
If the user wants to unshare, he can access to the details view of the file and folder, so he can have all the controls he needs there.
Deleting seems clearer in the "all files" section

Related Issue

https://github.com/owncloud/enterprise/issues/5399

Motivation and Context

How Has This Been Tested?

  1. userA shares a folder with some content to userB
  2. userA goes to the "shared with others" section
  3. there isn't any "delete" action to delete the shared folder inside the "shared with others" section.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@ownclouders
Copy link
Contributor

ownclouders commented Nov 15, 2022

💥 Acceptance tests pipeline apiTranslation-mariadb10.2-php7.4 failed. The build has been cancelled.

https://drone.owncloud.com/owncloud/core/37682/71

@jvillafanez
Copy link
Member Author

The test fails because the action isn't available any longer.

@jvillafanez jvillafanez force-pushed the remove_delete_from_shares branch from 263f7b9 to 0b07303 Compare November 15, 2022 16:15
@jvillafanez
Copy link
Member Author

@phil-davis should we remove the failing tests now that they aren't applicable any longer, or should we skip them somehow?

@jvillafanez jvillafanez marked this pull request as ready for review November 15, 2022 16:41
@jvillafanez
Copy link
Member Author

ping

@pako81
Copy link

pako81 commented Dec 7, 2022

@phil-davis can we do something for the failing tests?

@jvillafanez jvillafanez force-pushed the remove_delete_from_shares branch from 64f845a to d7dacfd Compare January 10, 2023 16:39
@phil-davis phil-davis force-pushed the remove_delete_from_shares branch from d7dacfd to 17c10a7 Compare January 19, 2023 11:17
@owncloud owncloud deleted a comment from update-docs bot Jan 19, 2023
@phil-davis phil-davis changed the title Files and folder won't be deleted from the "shared with others" section [full-ci] Files and folder won't be deleted from the "shared with others" section Jan 19, 2023
@phil-davis phil-davis force-pushed the remove_delete_from_shares branch from 17c10a7 to cf9645e Compare January 19, 2023 11:21
@phil-davis
Copy link
Contributor

Sorry for forgetting about this one. I reabsed and put full-ci in the PR title. I will check the CI results to see what is failing. Probably I will just remove the test scenarios that are no longer relevant.

@phil-davis
Copy link
Contributor

There was already a useful acceptance test step that could do:

But it should not be possible to delete file "lorem.txt" using the webUI

So I adjusted the webUI acceptance test scenarios so that they actually check that there is no functional Delete option available.

@phil-davis phil-davis self-requested a review January 19, 2023 12:11
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

42.9% 42.9% Coverage
0.0% 0.0% Duplication

@phil-davis phil-davis merged commit 3d9f972 into master Jan 19, 2023
@delete-merged-branch delete-merged-branch bot deleted the remove_delete_from_shares branch January 19, 2023 12:49
@jnweiger
Copy link
Contributor

Confirmed fixed in 10.12.0-rc.3
There is no delete or unshare in the shared with others tab. Not for normal folders, not for WND, SFTP mounts or subfolders thereof.

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

Successfully merging this pull request may close these issues.

5 participants