Discussion Forum page does not dynamically update for the first thread
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- php
- Domain
- full-stack
Research direction
Start by tracing the Discussion Forum page's websocket update path, focusing on the empty-forum state and the event emitted when the first thread is created. Reproduce the two-browser scenario from the issue, then verify that Browser 2 displays the new first thread without a refresh while existing thread and post updates continue to work.
Written by the indexing model from the issue text.
Description
Describe the bug
When a user opens the Discussion Forum and no threads have been created, a page with "A thread hasn't been created yet. Be the first to do so!" appears. If this page is still open when another user creates the first thread, it does not automatically update to show this thread.
Expected behavior
The page should update and show the first thread. (Using websockets! Note that all other tested cases of adding a post or a thread seem to work correctly and websockets updates the forum page of other users.)
Steps to reproduce
Steps to reproduce the behavior:
- Open the BLANK course and enable Discussion Forum.
- Open the empty Discussion Forum in two browsers as two different users
- In Browser 1, create a the first thread.
- Observe that Browser 2 does not update.
Configuration
- OS: Arch Linux
- Browser: Firefox and Chromium
Context
Discovered while reviewing #9906.
- Dominant language
- PHP
- Stars
- 793
- Forks
- 1.1k
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 78
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Submitty/Submitty
-
Awaiting Triage bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Awaiting Triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug good first issue grade inquiry (prev. regrade request) Notifications / Email
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug good first issue grade inquiry (prev. regrade request)
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug good first issue TA Grading / TA UI
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
All issues in Submitty/Submitty
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100