feat: add real-time collaboration for analysis sessions#973
Open
bhavyajain0810 wants to merge 2 commits into
Open
feat: add real-time collaboration for analysis sessions#973bhavyajain0810 wants to merge 2 commits into
bhavyajain0810 wants to merge 2 commits into
Conversation
Author
|
Hi @imDarshanGK, Just following up on this PR whenever you have a chance to review it. The implementation includes the real-time collaboration WebSocket flow, session presence, live code syncing, cursor updates, review comments, heartbeat handling, conflict/version handling, frontend controls, and backend test coverage. Current verification:
Since this is a relatively large feature, I would appreciate any review feedback or requested changes so I can address them promptly. Thank you! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Implemented real-time collaboration support for analysis sessions.
This PR adds a WebSocket-based collaboration layer that allows multiple users to join the same session and work together while reviewing code. It includes live code syncing, collaborator presence, cursor position sharing, live review comments, basic version-based conflict handling, heartbeat support, frontend collaboration controls, and backend test coverage.
Related Issue
Fixes #676
Backend changes
Frontend changes
Tests added
Type of change
Checklist
mainpytest -vand all tests passfeat/fix/docs/test: short descriptionScreenshots (if frontend change)
Live collaboration panel
Added a collaboration panel above the code editor for entering user name, session ID, joining/leaving live sessions, viewing collaboration status, and adding live review comments.
Active collaboration session
Verified that multiple users can join the same collaboration session and see live collaboration status/presence.
Adding live review comments
Verified that users can add live review comments inside a collaboration session.
Test evidence
pytest -v 405 passed, 2 warnings in 35.27s The warnings are existing dependency/deprecation warnings and are unrelated to this change.