CMU-17313Q / fall23-nodebb-just-relax

fall23-nodebb-just-relax created by GitHub Classroom
GNU General Public License v3.0
0 stars 2 forks source link

Add in the Functionality for Resolving a Question (Back-End) and Linking the Front-End Button to the Back-End - User Story 5 #40

Closed Maria-Aidarus closed 11 months ago

Maria-Aidarus commented 11 months ago

Estimated effort for each task: I would say that this issue is quite difficult. This is because I would need to create a function within the controller, define routes, and create an attribute for resolve within the topic data. Dependencies: Issue #16 Acceptance criteria: Successful completion is attained when users are able to utilize the 'Resolve' button to mark a question as resolved, resulting in the 'isResolved' attribute of the post (topics) being set to 'true'. Resolved: In src/topics/create.js, a boolean attribute called 'isResolved' was added to the 'topicObject,' set to 'true' when users confirm post resolution. Additionally, a controller function in src/controllers/topics.js was implemented to update the 'isResolved' attribute of a topic in the database to 'true' and send an API response containing the updated topic data, with corresponding routes (src/routes/index.js) linking the backend and frontend.