Implement GET and PATCH /overall_comment API routes, closes #7708#7963
Open
philipkukulak wants to merge 1 commit into
Open
Implement GET and PATCH /overall_comment API routes, closes #7708#7963philipkukulak wants to merge 1 commit into
philipkukulak wants to merge 1 commit into
Conversation
Contributor
Author
|
Noting that I will update the API documentation and open a PR for that on Monday. |
Collaborator
Coverage Report for CI Build 26314987781Coverage increased (+0.01%) to 90.237%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
84ce689 to
854fe4c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Implements
GETandPATCH/overall_comment, allowing for API retrieval and updating of theoverall_commentfield in theresultstable. Closes #7708.GET/api/courses/:course_id/assignments/:assignment_id/groups/:id/overall_comment— returns the current overall comment for a group's resultPATCH/api/courses/:course_id/assignments/:assignment_id/groups/:id/overall_comment— sets or clears the overall commentBoth endpoints return JSON or XML depending on the Accept header, consistent with the rest of the API.
Screenshots of your changes (if applicable)
n/aAssociated documentation repository pull request (if applicable)
n/aType of Change
(Write an
Xor a brief description next to the type or types that best describe your changes.)Checklist
(Complete each of the following items for your pull request. Indicate that you have completed an item by changing the
[ ]into a[x]in the raw text, or by clicking on the checkbox in the rendered description on GitHub.)Before opening your pull request:
After opening your pull request:
Questions and Comments
Detailed description of smoke tests:
Smoke Test:
GET/PATCH .../groups/:id/overall_commentSetup
Prerequisites
docker compose up -d railshttp://localhost:3000/csc108/api/...Variables used in all commands below
Reset to a known state before running:
Test Cases
Auth
Format
Routing
GET
PATCH
Results (2026-05-22)
{"overall_comment":...}<result><overall-comment>""null