Skip to content

Fix/issue 3930 qa upvoting#3934

Open
pradeep0153 wants to merge 8 commits into
Premshaw23:masterfrom
pradeep0153:fix/issue-3930-qa-upvoting
Open

Fix/issue 3930 qa upvoting#3934
pradeep0153 wants to merge 8 commits into
Premshaw23:masterfrom
pradeep0153:fix/issue-3930-qa-upvoting

Conversation

@pradeep0153

Copy link
Copy Markdown
Contributor

Closes #3930.

Description

This PR transforms the course Q&A board from a noisy, chronological feed into a highly curated, community-driven knowledge base by introducing threaded upvoting.

Changes Made

  • Added a votes integer column to the Questions and Answers database tables, along with a UserVotes join table to prevent duplicate voting.
  • Built interactive Upvote/Downvote chevron UI components next to every post and reply.
  • Modified the backend API's sorting algorithm. The Q&A feed now defaults to a "Most Helpful" view, sorting threads descending by their net vote score rather than strict creation date.
  • Added a special "Instructor Endorsed" badge capability. Instructors can pin a specific answer to the absolute top of the thread, overriding the community vote, to ensure the most accurate information is highly visible.

Impact

  • Information Discovery & Curation: In highly populated courses, the Q&A section quickly becomes unusable as brilliant, detailed answers from instructors are buried under pages of repetitive, basic questions. By empowering the student community to upvote the best questions and the most helpful answers, the highest quality content naturally floats to the top. This drastically reduces the time students spend searching for help and prevents instructors from having to answer the exact same question dozens of times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Implement a Reddit-style upvoting system for the Course Q&A section

1 participant