-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
[stable14] always query the lookup server in a global scale setup #11723
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
Conversation
…er label Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
| $body = json_decode($response->getBody(), true); | ||
|
|
||
| foreach ($body as $lookup) { | ||
| $remote = $this->cloudIdManager->resolveCloudId($lookup['federationId'])->getRemote(); |
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.
resolveCloudId can throw, better wrap this in a try-catch too, so we get as many suggestions as possible?
|
|
||
| foreach ($body as $lookup) { | ||
| $remote = $this->cloudIdManager->resolveCloudId($lookup['federationId'])->getRemote(); | ||
| if ($this->currentUserRemote === $remote) continue; |
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.
newline+ brackets please
| foreach ($body as $lookup) { | ||
| $remote = $this->cloudIdManager->resolveCloudId($lookup['federationId'])->getRemote(); | ||
| if ($this->currentUserRemote === $remote) continue; | ||
| $name = isset($lookup['name']['value']) ? $lookup['name']['value'] : ''; |
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.
Since we are now in php 7+ you can use:
$name = $lookup['name']['value'] ?? '';Signed-off-by: Bjoern Schiessle <[email protected]>
|
let's finish master first? |
Yes - let's close this for now and do the backport PR once master is accepted. |
backport of #11714