stable

Clone or download

Read-only

Save updated description comment

part of story #31151 Edit the description comment in text only How to test: - Go to a pull request - Click on [Edit] in its footer - Write a description containing user mentions and references - Click on save --> The new description has been saved --> The component is in read-mode --> The tooltips have been loaded - Click on [Edit], then on [Cancel] --> The tooltips have been loaded Change-Id: I1105d1db06eb269b81f5016bf9e794de1bf34644

Modified Files

Name
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentController.test.ts +2 −4 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentController.ts +1 −4 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionComment.test.ts +13 −7 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionComment.ts +11 −1 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentController.test.ts +91 −9 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentController.ts +57 −6 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentFormPresenter.test.ts +44 −6 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentFormPresenter.ts +19 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentFormTemplate.test.ts +3 −7 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentFormTemplate.ts +29 −4 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentPresenter.test.ts +57 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentPresenter.ts +14 −1 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentSaver.test.ts +53 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentSaver.ts +40 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionContentTemplate.test.ts +3 −8 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/main.ts +2 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/types.ts +2 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/tests/stubs/ControlPullRequestDescriptionCommentStub.ts +30 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/tests/stubs/SaveDescriptionCommentStub.ts +57 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/rest-api-types/src/pull-request.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/Threads/DescriptionCommentPresenterBuilder.test.ts +4 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/Threads/DescriptionCommentPresenterBuilder.ts +2 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/Threads/OverviewThreads.vue +4 −1 Go to diff View file