-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emit events for collaborative sessions (#139)
* Register a new event schema * Emit events * Subscribe to events * Fixes string format * Fix dep versions * Review: Adds log level property * Review: wording * Review: suggestions for log level * Review: use lab console log * Update dependencies * Update jupyter_collaboration/events/session.yaml Co-authored-by: Afshin Taylor Darian <[email protected]> * Update jupyter_collaboration/events/session.yaml Co-authored-by: Afshin Taylor Darian <[email protected]> * Update jupyter_collaboration/events/session.yaml Co-authored-by: Afshin Taylor Darian <[email protected]> * Review --------- Co-authored-by: Afshin Taylor Darian <[email protected]>
- Loading branch information
Showing
14 changed files
with
918 additions
and
502 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
"$id": https://schema.jupyter.org/jupyter_collaboration/session/v1 | ||
"$schema": "http://json-schema.org/draft-07/schema" | ||
version: 1 | ||
title: Collaborative session events | ||
personal-data: true | ||
description: | | ||
Events emitted server-side during a collaborative session. | ||
type: object | ||
required: | ||
- level | ||
- room | ||
- path | ||
properties: | ||
level: | ||
enum: | ||
- INFO | ||
- DEBUG | ||
- WARNING | ||
- ERROR | ||
- CRITICAL | ||
description: | | ||
Message type. | ||
room: | ||
type: string | ||
description: | | ||
Room ID. Usually composed by the file type, format and ID. | ||
path: | ||
type: string | ||
description: | | ||
File path. | ||
store: | ||
type: string | ||
description: | | ||
The store used to track the document history. | ||
action: | ||
enum: | ||
- initialize | ||
- load | ||
- save | ||
- overwrite | ||
- clean | ||
description: | | ||
Action performed in a room during a collaborative session. | ||
Possible values: | ||
1. initialize | ||
Initialize a room by loading the content from the contents manager or a store. | ||
2. load | ||
Load the content from the contents manager. | ||
3. save | ||
Save the content with the contents manager. | ||
4. overwrite | ||
Overwrite the content in a room with content from the contents manager. | ||
This can happen when multiple rooms access the same file or when a user | ||
modifies the file outside Jupyter Server (e.g. using a different app). | ||
5. clean | ||
Clean the room once is empty (aka there is no more users connected to it). | ||
msg: | ||
type: string | ||
description: | | ||
Event message. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ | |
"stylelint-config-standard": "^30.0.1", | ||
"stylelint-prettier": "^3.0.0", | ||
"typedoc": "~0.23.28", | ||
"typescript": "~5.0.2" | ||
"typescript": "~5.0.4" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
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
Oops, something went wrong.