Forum edit modal displays 1900 expiration for unpinned threads
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 77/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, php
Research direction
Start with the forum edit response and the assignment to #expirationDate in site/public/js/forum.js; trace where the pinned_expiration value is supplied for an unpinned thread. Check the relevant forum edit tests or add coverage for the unpinned case. Done means the edit modal opens with the expiration field empty while still allowing an instructor to enter a future date.
Written by the indexing model from the issue text.
Description
Describe the bug
Editing the first post of an unpinned discussion-forum thread displays the internal 1900-01-01 sentinel as an actual Expiration Date. The thread is not pinned, so the expiration control is misleading in this state.
Expected behavior
For an unpinned thread, the Expiration Date field should not display the internal sentinel value. It should be empty while remaining available if an instructor wants to set a future expiration date.
To Reproduce
Steps to reproduce the behavior:
- Sign in as an instructor and open a course's Discussion Forum.
- Open an unpinned thread.
- Open the first post's menu and select Edit.
- Observe that Expiration Date displays
1900-01-01 12:00 AM.
Configuration
- OS: macOS
- Browser: Chrome
- Submitty version shown locally: v26.09.00
Screenshots
The edit modal displays the sentinel value as the Expiration Date:
Additional context
On current main, unpinned threads use 1900-01-01 as the pinned_expiration sentinel. The forum edit response returns that value, and site/public/js/forum.js assigns it to #expirationDate. I searched existing open and closed issues for this sentinel and unpinned-thread expiration behavior and did not find a matching report.
- Dominant language
- PHP
- Stars
- 804
- Forks
- 1.1k
- Avg merge
- 6d 18h
- Merged PRs (30d)
- 62
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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
-
Add character limit to Full Course NamePossibly taken @aconfo claimed this 1 day ago. OpenAwaiting Triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Submitty/Submitty#13555 · 1 assignee ·
Maintainers usually reply within 2 days
-
Awaiting Triage enhancement / feature request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
Sidebar notifications badge does not update after marking notifications as seenPossibly taken @codeWithkrish123 claimed this 38 days ago. Openbug good first issue Notifications / Email
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Submitty/Submitty#13372 · 2 comments ·
Maintainers usually reply within 2 days
-
Grader notifications for grade inquiries are never sent (silently dropped)Possibly taken @iUjjwalRaj claimed this 23 days ago. Openbug Notifications / Email
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 2 days
-
overridden grade button colorPossibly taken @NobleCoder69 claimed this 48 days ago. Openbug good first issue TA Grading / TA UI
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Submitty/Submitty#13320 · 2 comments ·
Maintainers usually reply within 2 days
All issues in Submitty/Submitty
Similar issues
-
ServiceMapMissingAnalyser reads @method in docblock prose as a tag and reports a phantom accessorOpenagent-ready area:static-analysis bug p3
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
gacela-project/gacela#1050 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
grokability/massdriver-server#38 ·
Maintainers usually reply within 1 day
-
bug review needed
Difficulty 1/5 Under an hour Newbie friendliness 86/100
OpenMage/magento-lts#5816 ·
Maintainers usually reply within 2 days
-
priority:low type:docs
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
crazy-goat/rabbit-stream#958 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
pterodactyl/panel#7310 ·
Maintainers usually reply within 1 day