Skip to content

[Bugfix:Forum] Fix server crash editing markdown#12142

Merged
williamjallen merged 1 commit intomainfrom
markdown-edit-fix
Oct 18, 2025
Merged

[Bugfix:Forum] Fix server crash editing markdown#12142
williamjallen merged 1 commit intomainfrom
markdown-edit-fix

Conversation

@DarthNyan
Copy link
Contributor

Why is this Change Important & Necessary?

Fixes #12130

There has been a rare but recurring server crash on the forum when editing posts due to an expected input not existing. After investigation, this is related to markdown, specifically clicking "Update Post" while the markdown editor is in "preview" mode.

Repro Steps:

  • Open the edit page for a post
  • Enable markdown
  • Switch editor to "preview" mode
  • Click "Update Post" button and observe failure

What is the New Behavior?

This occurs because the relevant textarea is conditionally rendered using v-if, which removes it from the DOM when unrendered. By switching this to v-show, this input remains in the DOM and its contents can be accessed and sent with the edit submission.

What steps should a reviewer take to reproduce or test the bug or new feature?

Automated Testing & Documentation

Other information

@codecov
Copy link

codecov bot commented Oct 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.68%. Comparing base (9733059) to head (ea72d64).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12142   +/-   ##
=========================================
  Coverage     21.68%   21.68%           
  Complexity     9598     9598           
=========================================
  Files           268      268           
  Lines         36620    36620           
  Branches        475      475           
=========================================
  Hits           7941     7941           
  Misses        28208    28208           
  Partials        471      471           
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.07% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.69% <ø> (ø)
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 90.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DarthNyan DarthNyan requested a review from bmcutler October 16, 2025 22:46
@automateprojectmangement automateprojectmangement bot moved this from Seeking Reviewer to In Review in Submitty Development Oct 16, 2025
Copy link
Contributor

@RyanStyron RyanStyron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and was able to replicate the issue as described. The solution is confined and resolves the error. Great job.

@github-project-automation github-project-automation bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Oct 17, 2025
@williamjallen williamjallen merged commit d08a32d into main Oct 18, 2025
68 of 74 checks passed
@williamjallen williamjallen deleted the markdown-edit-fix branch October 18, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Frog robot crash in forum edit post

3 participants