stable

Clone or download

Read-only

refactor: InlineCommentRepresentation is mutation-free

No functional change expected when creating a new inline comment or getting the diff of a file through the REST API. part of story #32316 Update comments Change-Id: Ifb2b2c3b1ee7301af034940e30d0f45bcdd5c6c9

Modified Files

Name
A plugins/pullrequest/include/PullRequest/REST/v1/InlineComment/InlineCommentRepresentation.php +64 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/InlineComment/InlineCommentRepresentationsBuilder.php +6 −20 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/InlineComment/POSTHandler.php +5 −19 Go to diff View file
A plugins/pullrequest/include/PullRequest/REST/v1/InlineComment/SingleRepresentationBuilder.php +72 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestFileUniDiffRepresentation.php +3 −2 Go to diff View file
D plugins/pullrequest/include/PullRequest/REST/v1/PullRequestInlineCommentRepresentation.php +0 −81 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php +3 −4 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/Comment/CommentRepresentationBuilderTest.php +14 −14 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/InlineComment/InlineCommentRepresentationsBuilderTest.php +2 −4 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/InlineComment/POSTHandlerTest.php +2 −4 Go to diff View file
A plugins/pullrequest/tests/unit/REST/v1/InlineComment/SingleRepresentationBuilderTest.php +64 −0 Go to diff View file
D plugins/pullrequest/tests/unit/REST/v1/PullRequestInlineCommentRepresentationTest.php +0 −84 Go to diff View file