comments: re-implemented diff and comments/todos in pull-requests.

This commit is contained in:
Marcin Kuzminski 2019-08-13 12:45:25 +02:00
parent 324bbd3ace
commit 000b072a3f
9 changed files with 98 additions and 76 deletions

View file

@ -426,6 +426,12 @@ class RepoPullRequestsView(RepoAppView, DataGridAppView):
c.inline_versions = comments_model.aggregate_comments(
inline_comments, versions, c.at_version_num, inline=True)
# TODOs
c.unresolved_comments = CommentsModel() \
.get_pull_request_unresolved_todos(pull_request)
c.resolved_comments = CommentsModel() \
.get_pull_request_resolved_todos(pull_request)
# inject latest version
latest_ver = PullRequest.get_pr_display_object(
pull_request_latest, pull_request_latest)