-
-
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
display displayname on federated shares #35915
Conversation
try { | ||
$slaveService = Server::get(\OCA\GlobalSiteSelector\Service\SlaveService::class); | ||
} catch (ContainerExceptionInterface $e) { | ||
\OC::$server->getLogger()->logException($e); | ||
return []; | ||
} |
Check failure
Code scanning / Psalm
InvalidCatch
} | ||
|
||
try { | ||
$slaveService = Server::get(\OCA\GlobalSiteSelector\Service\SlaveService::class); |
Check failure
Code scanning / Psalm
UndefinedClass
try { | ||
$slaveService = Server::get(\OCA\GlobalSiteSelector\Service\SlaveService::class); | ||
} catch (ContainerExceptionInterface $e) { | ||
\OC::$server->getLogger()->logException($e); |
Check notice
Code scanning / Psalm
DeprecatedMethod
try { | ||
$slaveService = Server::get(\OCA\GlobalSiteSelector\Service\SlaveService::class); | ||
} catch (ContainerExceptionInterface $e) { | ||
\OC::$server->getLogger()->logException($e); |
Check notice
Code scanning / Psalm
DeprecatedMethod
0fbdea9
to
4e40b11
Compare
try { | ||
$slaveService = Server::get(\OCA\GlobalSiteSelector\Service\SlaveService::class); | ||
} catch (ContainerExceptionInterface $e) { | ||
\OC::$server->getLogger()->logException($e); | ||
return ''; | ||
} |
Check failure
Code scanning / Psalm
InvalidCatch
@@ -335,13 +340,13 @@ | |||
return $result; | |||
} | |||
|
|||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name): void { | |||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { |
Check notice
Code scanning / Psalm
MissingParamType
@@ -335,13 +340,13 @@ | |||
return $result; | |||
} | |||
|
|||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name): void { | |||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { |
Check notice
Code scanning / Psalm
MissingParamType
@@ -335,13 +340,13 @@ | |||
return $result; | |||
} | |||
|
|||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name): void { | |||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { |
Check notice
Code scanning / Psalm
MissingParamType
@@ -335,13 +340,13 @@ | |||
return $result; | |||
} | |||
|
|||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name): void { | |||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { |
Check notice
Code scanning / Psalm
MissingParamType
@@ -335,13 +340,13 @@ | |||
return $result; | |||
} | |||
|
|||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name): void { | |||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { |
Check notice
Code scanning / Psalm
MissingParamType
@@ -335,13 +340,13 @@ | |||
return $result; | |||
} | |||
|
|||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name): void { | |||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { |
Check notice
Code scanning / Psalm
MissingParamType
4e40b11
to
9e1914c
Compare
819cecf
to
efdc115
Compare
3c5e09f
to
6631ea2
Compare
bb00928
to
2532553
Compare
@@ -335,13 +341,13 @@ private function mapShareTypeToNextcloud($shareType) { | |||
return $result; | |||
} | |||
|
|||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name): void { | |||
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { |
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.
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { | |
private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, string $displayName): void { |
And might as well type all parameters, this is a private function.
@@ -360,6 +376,102 @@ private function getDisplayNameFromAddressBook(string $query, string $property): | |||
return $query; | |||
} | |||
|
|||
|
|||
/** |
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.
add some comment on how this method works ...
f5449ea
to
c606739
Compare
what's with all the psalm warnings? |
c606739
to
60f9cf0
Compare
bcaef17
to
2e69ffa
Compare
2e69ffa
to
b5562ab
Compare
b5562ab
to
415d824
Compare
Signed-off-by: Maxence Lange <[email protected]>
415d824
to
d2efd0e
Compare
/backport to stable27 |
/backport to stable26 |
The backport to stable27 failed. Please do this backport manually. # Switch to the target branch and update it
git checkout stable27
git pull origin stable27
# Create the new backport branch
git checkout -b fix/foo-stable27
# 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-stable27 More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport |
The backport to stable26 failed. Please do this backport manually. # Switch to the target branch and update it
git checkout stable26
git pull origin stable26
# Create the new backport branch
git checkout -b fix/foo-stable26
# 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-stable26 More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport |
@ArtificialOwl can you take care of the manual backports? 🥇 |
retrieve data from lookup-server if available when displaying shares.
includes some caching
also needed: