-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Retrieving shared contacts/users from database to dropdown menu #14731
Conversation
…when user typed name
…when user typed name Signed-off-by: sananirajabov <[email protected]>
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.
lib/private/Contacts/ContactsMenu/ContactsStore.php 100644 → 100755
please revert the permission changes
I think the contacts from shares should be extracted to a new class |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Now I think it works well, bring shared contacts to dropdown menu and when search happens it search in whole database. |
This comment has been minimized.
This comment has been minimized.
$queryBuilder = $this->conn->getQueryBuilder(); | ||
|
||
// Getting shared users | ||
$sharedContactsQuery = $queryBuilder->selectDistinct("share_with") |
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.
this, in combination with the expensive iteration below won't scale for larger instances with thousands of shares. there should be a limit
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.
Yes you are right, Actually I had not thought about it. How about limit to 100 shared users? is it ok?
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.
Sounds good!
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.
I had to limit users to 25 entries because in the same directory Manager class limit users to 25 entries,
$topEntries = array_slice($sortedEntries, 0, 25);
I did not want to change to 100.
https://gitlab.com/bitfireAT/davx5-ose/commit/7ce739c271f9b4f9b3cd7c16c526a774a7d99bdc Signed-off-by: Daniel Kesselberg <[email protected]> Signed-off-by: sananirajabov <[email protected]>
#12915 Signed-off-by: Daniel Kesselberg <[email protected]> Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: Daniel Kesselberg <[email protected]> Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: Daniel Kesselberg <[email protected]> Signed-off-by: sananirajabov <[email protected]>
Remove $token instanceof DefaultToken || $token instanceof PublicKeyToken Signed-off-by: Daniel Kesselberg <[email protected]> Signed-off-by: sananirajabov <[email protected]>
- Trigger rename by doubleclick on token name - Use action rename to open and close - Line height stays the same Signed-off-by: Daniel Kesselberg <[email protected]> Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: Daniel Kesselberg <[email protected]> Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: Daniel Kesselberg <[email protected]> Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: Joas Schilling <[email protected]> Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: sananirajabov <[email protected]>
…when user typed name Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: sananirajabov <[email protected]>
Co-Authored-By: sananirajabov <[email protected]> Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: sananirajabov <[email protected]>
This reverts commit 423b727. Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: sananirajabov <[email protected]>
Hi, I had DCO problems, and when entered details to look what is the problem I saw it is sign off problem and also offered two lines git command and I applied then DCO got successful but appeared some problem and I do not know how to solve these problems and conflicts, it shows I signed off someone's commit but I do not know how it happened. If it is possible could you help me? Or it is good idea close this pull request and create new one? |
Rebase your branch with nextcloud/server:master I usually do it with phpstorm like this. origin is https://github.com/nextcloud/server (because i have write permission to nextcloud/server). You might add a new remote to your repository "upstream" which points to https://github.com/nextcloud/server and rebase onto refs/remotes/upstream/master |
Thanks a lot, I solved problem. |
Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: sananirajabov <[email protected]>
Signed-off-by: sananirajabov <[email protected]>
@sananirajabov Are you still working on this? |
No, I am not working on this issue. I fixed issue but now it has performance issue when there are lots of records in database. |
Master is no 18 development. If this needs to go into 17 please follow the normal backport procedures after merging. |
The problem is when you click users dropdown menu, first 25 users appear, to fix this problem I implemented code when you share something with user, this user then appear in dropdown menu, and there is no limit how many users will appear.
fix #5097
Signed-off-by: Sanani Rajabov [email protected]