-
Notifications
You must be signed in to change notification settings - Fork 303
WIP: Feat/federation #7330
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
base: main
Are you sure you want to change the base?
WIP: Feat/federation #7330
Conversation
Signed-off-by: grnd-alt <github@belakkaf.net>
Signed-off-by: grnd-alt <github@belakkaf.net>
Signed-off-by: grnd-alt <github@belakkaf.net>
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.
3 more comments i had pending while we looked through it in the call
| $schema = $schemaClosure(); | ||
|
|
||
| $tableName = 'deck_boards_external'; | ||
| if ($schema->hasTable($tableName)) { |
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.
We should put all db changes of this pr in one migration file before merging
| } | ||
|
|
||
| public function getExternalBoardFromRemote(Board $localBoard):DataResponse { | ||
| $shareToken = $localBoard->getShareToken(); |
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.
Probably safeguard that the board has a share token here, as we discussed in the call this is checked before in the controller but should be here as well in case this is used in other places
| public function getExternalBoardFromRemote(Board $localBoard):DataResponse { | ||
| $shareToken = $localBoard->getShareToken(); | ||
| $participantCloudId = $this->cloudIdManager->getCloudId($this->userId, null); | ||
| $ownerCloudId = $this->cloudIdManager->resolveCloudId($localBoard->getOwner()); |
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.
Worth to double check the length of the owner column so we can properly fit any federated cloud ids in it
feat: set accessToken from FederationMiddleware Signed-off-by: grnd-alt <github@belakkaf.net>
Signed-off-by: grnd-alt <github@belakkaf.net>
Signed-off-by: grnd-alt <github@belakkaf.net>
Signed-off-by: grnd-alt <github@belakkaf.net>
|
🐢 Performance warning. |
Signed-off-by: grnd-alt <github@belakkaf.net>
2a82fa8 to
fcae61d
Compare
|
🐢 Performance warning. |
Checklist for federation features: