-
-
Couldn't load subscription status.
- Fork 4.6k
fix(files_sharing): Show remote shares as external #52423
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
Conversation
62b77c6 to
c6e4e63
Compare
|
/compile |
|
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
d190d59
Compare
|
Case 1: Existing shares are sorted properly ✅ Screencast.From.2025-04-25.12-42-42.webm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
6454cb5
Compare
|
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 ?
@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 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
|
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) |
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). |
|
/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