Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Refactor comment view models. #1993

Merged
merged 4 commits into from
Oct 26, 2018
Merged

Refactor comment view models. #1993

merged 4 commits into from
Oct 26, 2018

Conversation

grokys
Copy link
Contributor

@grokys grokys commented Oct 17, 2018

The drafts feature (#1994) requires comment view models to be async initializable and available from GitHub.App. This PR continues #1955 to:

  • Rename InlineCommentThreadViewModel -> PullRequestReviewCommentThreadViewModel
  • Move PullRequestReviewCommentThreadViewModel to GitHub.App
  • Make comment view models MEF creatable
  • Add InitializeAsync methods to initialize them with data.

- Renamed `InlineCommentThreadViewModel` -> `PullRequestReviewCommentThreadViewModel`
- Moved `PullRequestReviewCommentThreadViewModel` to GitHub.App
- Make comment view models MEF creatable
- Add `InitializeAsync` methods to initialize them with data.
@codecov
Copy link

codecov bot commented Oct 17, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@c44db52). Click here to learn what that means.
The diff coverage is 86.66%.

@@            Coverage Diff            @@
##             master    #1993   +/-   ##
=========================================
  Coverage          ?   39.16%           
=========================================
  Files             ?      405           
  Lines             ?    17343           
  Branches          ?     2398           
=========================================
  Hits              ?     6793           
  Misses            ?    10016           
  Partials          ?      534
Impacted Files Coverage Δ
...ineReviews/Peek/InlineCommentPeekableItemSource.cs 0% <0%> (ø)
...ws/Peek/InlineCommentPeekableItemSourceProvider.cs 0% <0%> (ø)
...neReviews/ViewModels/InlineCommentPeekViewModel.cs 77.47% <100%> (ø)
...rc/GitHub.App/ViewModels/CommentThreadViewModel.cs 100% <100%> (ø)
src/GitHub.App/ViewModels/CommentViewModel.cs 73.63% <86.44%> (ø)
...wModels/PullRequestReviewCommentThreadViewModel.cs 86.66% <86.66%> (ø)
...pp/ViewModels/PullRequestReviewCommentViewModel.cs 94.73% <94.73%> (ø)

Copy link
Collaborator

@jcansdale jcansdale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me and all the tests are passing. Just wondering about some commented out tests?


////namespace GitHub.InlineReviews.UnitTests.ViewModels
////{
//// public class NewInlineCommentThreadViewModelTests
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is up with these tests? 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes! I removed that class. Need to delete this file.

@jcansdale jcansdale merged commit a9f4336 into master Oct 26, 2018
@jcansdale jcansdale deleted the refactor/comment-viewmodels branch October 26, 2018 08:25
@meaghanlewis meaghanlewis added this to the 2.5.9 milestone Oct 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants