stable

Clone or download

Read-only

Render Markdown in REST follow-ups comments

Part of story #18336 add support of markdown How to test: - Set up an Agiledashboard (Kanban or Planning view) with an artifact that you can edit with the Artifact modal. - Hack the tracker_changeset_comment table in database. Write a comment in "text" format and then change the format in the DB to "commonmark". - When you open the Artifact modal to edit your artifact, the markdown comment is rendered as HTML with references extracted. Change-Id: I03567a91fded1dbd5f6caf30972e8e2f071c64d3

Modified Files

Name
M plugins/frs/include/FRS/REST/v1/ReleaseRepresentation.php +4 −1 Go to diff View file
M plugins/tracker/include/REST/Artifact/Changeset/ChangesetRepresentation.php +3 −3 Go to diff View file
A plugins/tracker/include/REST/Artifact/Changeset/Comment/CommentRepresentation.php +25 −0 Go to diff View file
M plugins/tracker/include/REST/Artifact/Changeset/Comment/CommentRepresentationBuilder.php +20 −2 Go to diff View file
A plugins/tracker/include/REST/Artifact/Changeset/Comment/CommonMarkCommentRepresentation.php +57 −0 Go to diff View file
R plugins/tracker/include/REST/Artifact/Changeset/Comment/ChangesetCommentRepresentation.php Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +4 −1 Go to diff View file
M plugins/tracker/include/REST/v1/ReportsResource.class.php +4 −1 Go to diff View file
M plugins/tracker/include/REST/v1/TrackersResource.class.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/PostCreation/ActionsRunner.php +4 −1 Go to diff View file
M plugins/tracker/tests/unit/REST/Artifact/ArtifactRepresentationBuilderTest.php +2 −2 Go to diff View file
M plugins/tracker/tests/unit/REST/Artifact/Changeset/ChangesetRepresentationBuilderTest.php +4 −1 Go to diff View file
M plugins/tracker/tests/unit/REST/Artifact/Changeset/Comment/CommentRepresentationBuilderTest.php +20 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Webhook/ArtifactPayloadBuilderTest.php +2 −2 Go to diff View file
M src/common/Markdown/ContentInterpretor.php +2 −0 Go to diff View file