Conversation
juliusknorr
left a comment
There was a problem hiding this comment.
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.
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.
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.
Worth to double check the length of the owner column so we can properly fit any federated cloud ids in it
|
🐢 Performance warning. |
2a82fa8 to
fcae61d
Compare
|
🐢 Performance warning. |
f36ef61 to
41b05a6
Compare
30048a0 to
1ba8c21
Compare
277a420 to
8587fb9
Compare
blizzz
left a comment
There was a problem hiding this comment.
Gives a good impression! 🙂
As discussed in the call:
- naming of new controllers
- updating cards
- taking global admin federations settings into account as mandatory
- (some code style nitpicks)
Signed-off-by: grnd-alt <github@belakkaf.net>
Signed-off-by: grnd-alt <github@belakkaf.net>
Signed-off-by: grnd-alt <github@belakkaf.net>
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>
Signed-off-by: grnd-alt <github@belakkaf.net>
Signed-off-by: grnd-alt <github@belakkaf.net>
Signed-off-by: grnd-alt <git@belakkaf.net>
Signed-off-by: grnd-alt <git@belakkaf.net>
Signed-off-by: grnd-alt <git@belakkaf.net>
Signed-off-by: grnd-alt <git@belakkaf.net>
Signed-off-by: grnd-alt <git@belakkaf.net>
Signed-off-by: grnd-alt <git@belakkaf.net>
Signed-off-by: grnd-alt <git@belakkaf.net>
Signed-off-by: grnd-alt <git@belakkaf.net>
8587fb9 to
bf54b70
Compare
Signed-off-by: grnd-alt <git@belakkaf.net>
Signed-off-by: grnd-alt <git@belakkaf.net>
Signed-off-by: grnd-alt <git@belakkaf.net>
| $this->configService->ensureFederationEnabled(); | ||
| $sharedBy = $this->userManager->get($this->userId); | ||
| $board = $this->find($boardId); | ||
| $token = $this->random->generate(32); |
There was a problem hiding this comment.
Nitpick: to follow nextcloud patterns, could consider moving this magic number into a const, maybe DeckFederationProvider::TOKEN_LENGTH and reuse it in the migrations too.
bcd956d to
480e269
Compare
Signed-off-by: grnd-alt <git@belakkaf.net>
480e269 to
17e7592
Compare
Signed-off-by: grnd-alt <git@belakkaf.net>
Checklist for federation features:
Out of scope for the first round
How to test this
with nextcloud-docker-dev
feat/deck-federationfeat/federationdocker compose up -d nextcloud nextcloud2http://nextcloud.localandhttp://nextcloud2.localrespectively for the other instancedocker compose exec nextcloud occ app:enable deck && docker compose exec nextcloud2 occ app:enable decknpm ci && npm run devdocker compose exec -ti nextcloud occ background-job:workerdocker compose exec -ti nextcloud2 occ background-job:workerdocker compose exec nextcloud occ federation:sync-addressbooks && docker compose exec nextcloud2 occ federation:sync-addressbooks