-
Notifications
You must be signed in to change notification settings - Fork 9
Introduce YRoomFileAPI
#24
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
Merged
Merged
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
1cec327
add YRoomFileAPI
dlqqq bb90f33
add unit test to fill out later
dlqqq dbdde01
return relative path instead of abs path in get_path()
dlqqq a06a655
add first working test for plaintext files
dlqqq 32d6d8a
add ensure_async() wrapper
dlqqq fbce965
re-define FileAPI methods to be sync while providing awaitable
dlqqq 72d1b5e
remove ydoc & awareness attrs on file API
dlqqq a99614f
fix typo
dlqqq 58a7543
remove outdated comment
dlqqq cbc4069
make YRoomManager take a room_id not a file_id
dlqqq 3a90131
remove unnecessary add_client and remove_client methods
dlqqq 734cdb4
add safe getters in YRoom
dlqqq 3716dbd
make JupyterYDoc, YDoc, Awareness private on YRoom
dlqqq b1ff093
keep room_id public on YRoom
dlqqq File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,3 @@ | ||
| from .yroom_file_api import YRoomFileAPI | ||
| from .yroom_manager import YRoomManager | ||
| from .yroom import YRoom |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
if load_ydoc_content() is called in this initialize method, it need to be moved to be after observer setup line 77 and 78. because creating task of ydoc means it could happen at any time for now on.
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 discussed to use a different message queue to handle awareness messages and unblock awareness message handling no matter initial file loading finished or not.