-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Kill some of the old sharing code related to share backends #26608
Conversation
@PVince81, thanks for your PR! By analyzing the history of the files in this pull request, we identified @schiessle, @DeepDiver1975 and @nickvergessen to be potential reviewers. |
Looks like But the bigger problem is that it seems that the share manager has no replacement for |
8b2a6c4
to
354e756
Compare
Solved a few test issues by porting the tests to the new API. |
|
Remaining to port:
|
354e756
to
cb9184f
Compare
|
cb9184f
to
0b07d32
Compare
|
|
0b07d32
to
bd2008a
Compare
bd2008a
to
2d2c5f5
Compare
Rebased as the |
|
apps/files_sharing/tests/ApiTest.php will need more work as it seems to test older APIs |
2d2c5f5
to
423cbe8
Compare
Note: we can't kill OCP\Share without killing ajax/share.php yet, so I'd do that in a separate PR. |
Last failure:
Some old tests can be deleted but need to check that the new code has these tests too for the new sharing API. |
It is also likely that merging this PR would break gallery sharing, so need to verify that it doesn't. |
2a1ccb0
to
152ef00
Compare
Rebased since #32494 was merged. Expecting all tests to be green now. |
seems I forgot to grep in "settings" when killing APIs:
|
Remove shareWithGroupMembersOnly helper and read from app config directly.
all green 🎉 I'd appreciate some review before merging @DeepDiver1975 @jvillafanez @VicDeo see "Description" in the original post and also the list of spaghettis I managed to untangle: #26608 (comment) there are still some spaghettis to untangle which must be adressed separately as they are more involved |
raised #33219 for part 2 with remaining items |
@PVince81 please note that |
@VicDeo thanks for the reminder, I'll submit a PR |
deprecation PR for stable10: #33220 |
Description
Remove the "File" and "Folder" item type and share backends from files_sharing.
These should not be needed any more when using the OCS Share API.
Also removes any reference to file/folder in the old share API in
\OC\Share
(where possible), so that the old sharing stays only for other types like contacts/etc. (another approach would be to rewire these API to the new API if a file/folder item type is given ?)Also remove most methods in \OC:Share class
Related Issue
General cleanup issue: #22209
Issue about those backends using oc_filecache: #26607
Motivation and Context
Removes the old code,
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
TODOs:
shareItem
with file/folder to use the share manager instead@DeepDiver1975 @jvillafanez