Part of lp.code.interfaces.codereviewinlinecomment View In Hierarchy
Method | ensureDraft | Ensure a ICodeReviewInlineCommentDraft is up to date. This method |
Method | publishDraft | Publish code review inline comments so other people can view them. |
Method | getDraft | Return the draft comments for a given diff and person. |
Method | getPublished | Return published comments for a given PreviewDiff . |
Method | getByReviewComment | Return published comments for a given CodeReviewComment . |
Method | getPreviewDiffsForComments | Return a dictionary container related comments and diffs. |
Method | removeFromDiffs | Remove inline comments for the given PreviewDiff ids. |
ICodeReviewInlineCommentDraft
is up to date. This method
will also delete an existing draft if the comments are empty.Parameters | previewdiff | The PreviewDiff these comments are for. |
person | The Person making the comments. | |
comments | The comments themselves. |
Parameters | previewdiff | The PreviewDiff these comments are for. |
person | The Person making the comments. | |
comment | The CodeReviewComment linked to the comments. |
Parameters | previewdiff | The PreviewDiff these comments are for. |
person | The Person making the comments. |
PreviewDiff
.Parameters | previewdiff | The PreviewDiff these comments are for. |
CodeReviewComment
.Parameters | comment | The CodeReviewComment for linked to the inline
comments. |
Return a dictionary container related comments and diffs. Used for prepopulating `BranchMergeProposal` view caches. `CodeReviewComment` and `PreviewDiff` are related by the existence of `CodeReviewInlineComment`. :param comments: a list of `CodeReviewComment`s :return: a dictionary containing the given `CodeReviewComment.id`s and the corresponding `PreviewDiff.id` or None.