Uh oh!
There was an error while loading. Please reload this page.
fix(files_sharing): Show remote shares as external - #52423
Conversation
62b77c6 to
c6e4e63Comparenfebe
commented
Apr 24, 2025
/compile |
AndyScherzinger
commented
Apr 25, 2025
Looping in @maximelehericy@jancborchardt and @ArtificialOwl to check this also works nicely in a Global Scale setup where federated shared (optionally?) should be seen as internal shares. |
54b7f09 to
d190d59Comparekesselb
commented
Apr 25, 2025
Case 1: Existing shares are sorted properly ✅ Screencast.From.2025-04-25.12-42-42.webm |
Signed-off-by: nfebe <fenn25.fn@gmail.com>
Replaced multiple Array.filter() calls with a single loop to improve performance. This avoids redundant iterations over the shares array and categorizes them more efficiently. Signed-off-by: nfebe <fenn25.fn@gmail.com>
d190d59 to
6454cb5Comparenfebe
commented
Apr 25, 2025
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
maximelehericy
left a comment
There was a problem hiding this comment.
Hi @nfebe , for global scale instances, in certain cases, what is expected is having all accounts considered as internal. Can you holdthis PR until we figured out a way to handle your case and the GS one ?
sorbaugh
commented
Apr 28, 2025
@jancborchardt an idea would be some kind of switch. Is this ok or is there maybe a better idea? Would need your input so @nfebe knows how to adjust 🙏 |
jancborchardt
left a comment
There was a problem hiding this comment.
@jancborchardt an idea would be some kind of switch. Is this ok or is there maybe a better idea?
@sorbaugh a switch sounds fine ("Treat remote shares as internal shares"), if it can’t be done automatically through some means like binding to another existing sharing setting or some other setup or license aspect?
And considering @maximelehericy’s comment as well:
for global scale instances, in certain cases, what is expected is having all accounts considered as internal.
There might be some other things to adjust as well. What comes to mind is removing the text "(remote)" after the name. This should then be bound to the same logic.
susnux
commented
Apr 28, 2025
Iirc we treat federation different with global scale anyways so we could just check if global scale is enabled and if it is then we just treat any remote user as internal at least for the sharing sidebar maybe this could be an option so we don't need any UI option. (At least all the lookup logic is changed with GS enabled) |
nfebe
commented
Apr 28, 2025
Hi @maximelehericy thanks for the input. For the majority of use cases and users this is a "bug" starting from when the sidebar was split, a switch, or any other solution can follow via a follow up ticket but the fix of first treating remote shares as external should be pushed forward (imo). |
nfebe
commented
Apr 28, 2025
/backport to stable31 |
Description
pick 4b68caa fix(files_sharing): Show remote shares in external shares section
pick 62b77c6 perf(files_sharing): Change sharing filtering from O(3n) to O(n)
Screenshots
Resolves : #51226
Checklist