stable
Clone or download
Read-only
How to test: - Enable the feature flag: `tuleap config-set feature_flag_allow_pull_requests_comments_edition 1` - Use the API explorer to make a PATCH request to /pull_request_inline_comments/{id} route. - When you give a valid inline comment id, the comment will be updated with the given content and you will get status code 200 with no return payload. You can check that it is updated in database or by reloading the page to see the updated comment. Notes: The return payload will be done in a later contribution. part of story #32316 Update comments Change-Id: Ifb2212826af705dce841748741ab415092733f21
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/pullrequest/include/PullRequest/InlineComment/Dao.php | +10 | −1 | Go to diff View file |
M | plugins/pullrequest/include/PullRequest/InlineComment/InlineComment.php | +18 | −0 | Go to diff View file |
A | plugins/pullrequest/include/PullRequest/InlineComment/InlineCommentSaver.php | +28 | −0 | Go to diff View file |
M | plugins/pullrequest/include/PullRequest/REST/v1/Comment/PATCHInlineCommentHandler.php | +6 | −2 | Go to diff View file |
M | plugins/pullrequest/include/PullRequest/REST/v1/PullRequestInlineCommentsResource.php | +7 | −6 | Go to diff View file |
M | plugins/pullrequest/tests/unit/Builders/InlineCommentTestBuilder.php | +12 | −0 | Go to diff View file |
A | plugins/pullrequest/tests/unit/InlineComment/InlineCommentTest.php | +105 | −0 | Go to diff View file |
M | plugins/pullrequest/tests/unit/REST/v1/Comment/PATCHInlineCommentHandlerTest.php | +19 | −5 | Go to diff View file |
A | plugins/pullrequest/tests/unit/Stub/InlineCommentSaverStub.php | +56 | −0 | Go to diff View file |