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

also filter by storage when getting shares in folder #42638

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

icewind1991
Copy link
Member

@icewind1991 icewind1991 commented Jan 8, 2024

Found while looking through the code.

Only filtering by path (when doing the non-shallow search) could otherwise return results from other storages/users.

The filter by parent doesn't strictly require the storage filter but I've added it anyway for consistency.

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Jan 8, 2024
@icewind1991 icewind1991 added this to the Nextcloud 29 milestone Jan 8, 2024
@icewind1991 icewind1991 requested review from a team, ArtificialOwl, Fenn-CS and sorbaugh and removed request for a team January 8, 2024 15:59
@icewind1991 icewind1991 force-pushed the shares-in-folder-storage branch 2 times, most recently from 1946df3 to d88170e Compare January 8, 2024 16:24
@nickvergessen
Copy link
Member

Do you know, does this improve/decrease performance of the queries due to index changes?

@icewind1991
Copy link
Member Author

I would expect filtering by path to be faster with the added filter, filtering by parent should be the same

Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 merged commit abfbe67 into master Mar 6, 2024
160 checks passed
@icewind1991 icewind1991 deleted the shares-in-folder-storage branch March 6, 2024 18:08
@blizzz blizzz mentioned this pull request Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants