-
Notifications
You must be signed in to change notification settings - Fork 3
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
WIP: refactor(backend): Socket state management refactor + adding redis adapter #574
Conversation
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.
Great idea using the redis adapter. Hopefully once we figure out these couple items this will provide us with some much needed stability and reliability.
Tested:
- Canvas: Create and tag posts on a canvas with two concurrent users
- Workflow: Generate 2 posts in canvas (Bug)
- Workflow: Generate 3 posts in bucket
- Workflow: Move ideas between buckets
- Workflow: Peer review ideas to move between buckets
- Workflow: Peer review ideas from canvas to bucket (Bug)
- Workflow: Generate 4 posts to canvas (Bug)
Bugs (may not be related to web sockets):
2.
- (a) When creating posts in the Workspace, posts created with tags are not displayed on the canvas.
- (b) If the final post created has a tag then the task fails to be marked as complete.
- (c) Posts are only displayed in the canvas after the canvas is refreshed--should they be showing up immediately?
- In the Workspace, when peer reviewing posts from the canvas to a bucket, all posts across the project were displayed as posts to review (including all posts from buckets and the two posts that did not appear on the canvas from the task above). Conclusion: This workflow is mistakenly providing all posts for peer review rather than only posts on the canvas.
- In the Workspace, I created all four posts with no tag. Upon completion they were all added to the canvas, but posts 1, 2, and 3 were posted twice and the 4th only once. NOTE: Could not replicate this.
- Additionally, I'm noticing only canvas events are being logged. No posts tagged or created in the Workspace are being logged. Is this unrelated to web sockets?
this._io = io; | ||
|
||
console.log('Socket server running at ' + 8000); | ||
|
||
io.on('connection', (socket) => { | ||
this._socket = socket; | ||
// this._socket = socket; |
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.
Should we remove this line?
I just noticed another item:
|
Will create new issues for the existing bugs, merging this in for now. |
Details
Closes #{ISSUE-NUMBER}