Uh oh!
There was an error while loading. Please reload this page.
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
4e40b11Compare| return ''; | ||
| } | ||
| return $slaveService->getUserDisplayName($userId, false); | ||
| } | ||
| } |
Check failure
Code scanning / Psalm
InvalidCatch
Uh oh!
There was an error while loading. Please reload this page.
| private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name): void { | ||
| private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { | ||
| $notification = $this->notificationManager->createNotification(); | ||
| $notification->setApp('files_sharing') |
Check notice
Code scanning / Psalm
MissingParamType
| private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name): void { | ||
| private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { | ||
| $notification = $this->notificationManager->createNotification(); | ||
| $notification->setApp('files_sharing') |
Check notice
Code scanning / Psalm
MissingParamType
| private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name): void { | ||
| private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { | ||
| $notification = $this->notificationManager->createNotification(); | ||
| $notification->setApp('files_sharing') |
Check notice
Code scanning / Psalm
MissingParamType
| private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name): void { | ||
| private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { | ||
| $notification = $this->notificationManager->createNotification(); | ||
| $notification->setApp('files_sharing') |
Check notice
Code scanning / Psalm
MissingParamType
| private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name): void { | ||
| private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { | ||
| $notification = $this->notificationManager->createNotification(); | ||
| $notification->setApp('files_sharing') |
Check notice
Code scanning / Psalm
MissingParamType
| private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name): void { | ||
| private function notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { | ||
| $notification = $this->notificationManager->createNotification(); | ||
| $notification->setApp('files_sharing') |
Check notice
Code scanning / Psalm
MissingParamType
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
4e40b11 to
9e1914cCompareUh oh!
There was an error while loading. Please reload this page.
819cecf to
efdc115CompareUh oh!
There was an error while loading. Please reload this page.
3c5e09f to
6631ea2Compare| 'strict_search' => true, | ||
| ]); | ||
| try { | ||
| $result = \OC::$server->getContactsManager()->search($query, [$property], [ |
Check notice
Code scanning / Psalm
DeprecatedMethod
bb00928 to
2532553Compare| } | ||
| 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.
| privatefunction notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, $displayName): void { | |
| privatefunction notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name, string$displayName): void { |
And might as well type all parameters, this is a private function.
| } | ||
| /** |
There was a problem hiding this comment.
add some comment on how this method works ...
Uh oh!
There was an error while loading. Please reload this page.
blizzz
commented
Apr 20, 2023
what's with all the psalm warnings? |
c606739 to
60f9cf0CompareUh oh!
There was an error while loading. Please reload this page.
bcaef17 to
2e69ffaCompare2e69ffa to
b5562abCompareUh oh!
There was an error while loading. Please reload this page.
b5562ab to
415d824CompareSigned-off-by: Maxence Lange <maxence@artificial-owl.com>
415d824 to
d2efd0eCompareArtificialOwl
commented
Jun 28, 2023
/backport to stable27 |
ArtificialOwl
commented
Jun 28, 2023
/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-stable27More 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-stable26More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport |
AndyScherzinger
commented
Jun 29, 2023
@ArtificialOwl can you take care of the manual backports? 🥇 |
retrieve data from lookup-server if available when displaying shares.
includes some caching
also needed: