-
-
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
use more efficient tag retrieval on DAV report request #37969
Conversation
d40537b
to
512a4b4
Compare
ce5ea9c
to
91a3750
Compare
ab3bba2
to
dbfd2f9
Compare
91a3750
to
9bbbab0
Compare
|
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
- possible null return - parameter name mismatch in implementation - incomplete unit test Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
bca6d7f
to
a0b6834
Compare
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
$this->equipQueryForSystemTags($query, $this->requireUser($searchQuery)); | ||
} | ||
if (in_array('tagname', $requestedFields) || in_array('favorite', $requestedFields)) { | ||
$this->equipQueryForDavTags($query, $this->requireUser($searchQuery)); |
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.
nice!
To adapt
|
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.
Changes look good and seem do the trick
Blocking for missing docs as the public API is changed:
@blizzz Can you prepare a companion PR for the documentation update on the API changes and maybe also with the short doc section about the system tag retrieval that you mentioned? Then we can merge them in sync ;)
|
||
foreach ($tags as $tag) { | ||
$tagName = $tag->getName(); | ||
$tmpNodes = $this->userFolder->searchBySystemTag($tagName, $this->userSession->getUser()->getUID(), $dbLimit, $dbOffset); |
Check notice
Code scanning / Psalm
PossiblyNullReference
// Empty intersection, nothing can show up anymore | ||
return []; | ||
if (!$oneTagSearch && ($limit !== null || $offset !== null)) { | ||
$nodes = array_slice($nodes, $offset, $limit); |
Check notice
Code scanning / Psalm
PossiblyNullArgument
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
a6c8661
to
d948710
Compare
The API Changes at: nextcloud/documentation#10678 The other thing you refer to, that would be the DAV endpoint extension from the first PR? |
Thanks, a right that was the other one. Yes, that would be nice to have as well :) |
The backport to adapt failed. Please do this backport manually. # Switch to the target branch and update it
git checkout adapt
git pull origin adapt
# Create the new backport branch
git checkout -b fix/foo-adapt
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123
# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-adapt More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport |
/backport to stable27 |
Summary
Example request body:
Example call:
ℹ️ the base branch is #37961 This PR is an addition to it, but I keep it seperated for smaller changesets.
TODO
Checklist