stable

Clone or download

Read-only

feat: have a dedicated route to post replies to inline comments

part of request #38667 Have a dedicated route to post inline comments replies note: To ease the review process, the introduction of the route in the frontend-apps will be done in a dedicated commit. How to test: - using the api explorer, call the rest route `POST /pull_request_inline_comments/:id/reply` using the id of an inline comment which has not a parent comment - Go to the pull-request overview where the root comment is. --> Your reply is displayed right below the root comment --> A thread has been started if the root comment had no replies before - You'll get errors when: --> The root comment is not found --> The root comment has a parent comment --> The pull-request of the comment is not found --> The git repository of the PR is not found --> The user cannot access the git repository of the PR --> The user cannot access the project containing the PR Change-Id: Iddd3064aab3034cc8f50454967d239589df0ab9f

Modified Files

Name
A plugins/pullrequest/include/PullRequest/InlineComment/RootInlineCommentHasAParentFault.php +36 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/FaultMapper.php +2 −1 Go to diff View file
A plugins/pullrequest/include/PullRequest/REST/v1/InlineComment/Reply/InlineCommentReplyPOSTRepresentation.php +45 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/REST/v1/InlineComment/Reply/POSTHandler.php +114 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestInlineCommentsResource.php +97 −0 Go to diff View file
M plugins/pullrequest/site-content/fr_FR/LC_MESSAGES/tuleap-pullrequest.po +8 −0 Go to diff View file
M plugins/pullrequest/site-content/pt_BR/LC_MESSAGES/tuleap-pullrequest.po +6 −0 Go to diff View file
M plugins/pullrequest/tests/rest/PullRequest/InlineCommentsTest.php +33 −0 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/FaultMapperTest.php +2 −0 Go to diff View file
A plugins/pullrequest/tests/unit/REST/v1/InlineComment/Reply/POSTHandler.php +231 −0 Go to diff View file