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
| return ''; | ||
| } | ||
|
|
||
| return $slaveService->getUserDisplayName($userId, false); | ||
| } | ||
| } |
Check failure
Code scanning / Psalm
InvalidCatch
| 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
4e40b11 to
9e1914c
Compare
819cecf to
efdc115
Compare
3c5e09f to
6631ea2
Compare
bb00928 to
2532553
Compare
| } | ||
|
|
||
| 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.
| 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.
| } | ||
|
|
||
|
|
||
| /** |
There was a problem hiding this comment.
add some comment on how this method works ...
|
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 <maxence@artificial-owl.com>
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-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 |
|
@ArtificialOwl can you take care of the manual backports? 🥇 |
retrieve data from lookup-server if available when displaying shares.
includes some caching
also needed: