Closed Xeno852 closed 6 months ago
It seems that the unlocking feature is implemented but locking feature is not? I'm not quite sure how this will function -- I don't think this functionality is complete
I think we might need more changes to the locking feature for this implementation to be complete
DO NOT MERGE THIS IS NOT WORKING
PR just to update repo
Pull Request: Implement Topic Locking Feature
Summary
This pull request introduces the ability to lock and unlock topics within the forum. It aims to give topic owners, administrators, and moderators the authority to halt new replies on topics when deemed necessary, crucial for maintaining forum discussions' relevance and orderliness.
Motivation
The addition of this feature is motivated by the need to:
Changes Made
Backend Changes:
locked
boolean field in the Topic model to keep track of the lock status./api/v3/topics/:tid/lock
and/api/v3/topics/:tid/unlock
for managing topic lock status.Frontend Changes:
Event Handling:
Manual Testing:
How to Test