-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
For any action that is executed on a board we have to find out who needs to get the resulting update. Socket.io organizes users in rooms. For the board - all clients on the same board are in the same room. The room name is based on the boardid. So we always need to find out the rootId of the boardNode the action was executed on. For example: if a card title was rename, the card is the boardNode-object and has the rootId of the board the card is placed on. *Until now*: the rootId was determined by (re)using the BoardAuthorisableService *Now*: the rootId can be taken directly from the boardNode (due to boardPersisting-refactorings of Team MilkyWay) which reduces the number of queries that need to be executed --------- Co-authored-by: hoeppner-dataport <[email protected]>
- Loading branch information
1 parent
0efdae2
commit c88e496
Showing
9 changed files
with
142 additions
and
99 deletions.
There are no files selected for viewing
158 changes: 74 additions & 84 deletions
158
apps/server/src/modules/board/gateway/board-collaboration.gateway.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,39 @@ | ||
import { MoveCardMessageParams } from './move-card.message.param'; | ||
import { CreateCardMessageParams } from './create-card.message.param'; | ||
import { UpdateColumnTitleMessageParams } from './update-column-title.message.param'; | ||
import { CreateColumnMessageParams } from './create-column.message.param'; | ||
import { CreateContentElementMessageParams } from './create-content-element.message.param'; | ||
import { DeleteBoardMessageParams } from './delete-board.message.param'; | ||
import { DeleteCardMessageParams } from './delete-card.message.param'; | ||
import { DeleteContentElementMessageParams } from './delete-content-element.message.param'; | ||
import { DeleteColumnMessageParams } from './delete-column.message.param'; | ||
import { FetchBoardMessageParams } from './fetch-board.message.param'; | ||
import { FetchCardsMessageParams } from './fetch-cards.message.param'; | ||
import { MoveCardMessageParams } from './move-card.message.param'; | ||
import { MoveColumnMessageParams } from './move-column.message.param'; | ||
import { MoveContentElementMessageParams } from './move-content-element.message.param'; | ||
import { UpdateBoardTitleMessageParams } from './update-board-title.message.param'; | ||
import { UpdateBoardVisibilityMessageParams } from './update-board-visibility.message.param'; | ||
import { UpdateCardHeightMessageParams } from './update-card-height.message.param'; | ||
import { UpdateCardTitleMessageParams } from './update-card-title.message.param'; | ||
import { UpdateColumnTitleMessageParams } from './update-column-title.message.param'; | ||
import { UpdateContentElementMessageParams } from './update-content-element.message.param'; | ||
|
||
export { MoveCardMessageParams, CreateCardMessageParams, UpdateColumnTitleMessageParams, DeleteColumnMessageParams }; | ||
export { | ||
CreateCardMessageParams, | ||
CreateColumnMessageParams, | ||
CreateContentElementMessageParams, | ||
DeleteBoardMessageParams, | ||
DeleteCardMessageParams, | ||
DeleteColumnMessageParams, | ||
DeleteContentElementMessageParams, | ||
FetchBoardMessageParams, | ||
FetchCardsMessageParams, | ||
MoveCardMessageParams, | ||
MoveColumnMessageParams, | ||
MoveContentElementMessageParams, | ||
UpdateBoardTitleMessageParams, | ||
UpdateBoardVisibilityMessageParams, | ||
UpdateCardHeightMessageParams, | ||
UpdateCardTitleMessageParams, | ||
UpdateColumnTitleMessageParams, | ||
UpdateContentElementMessageParams, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters