Copied from #2040 ### Still to do - [ ] Read the `RemoteRepositoryModel` when we read the PR model from GraphQL, that way we can fix https://github.com/github/VisualStudio/issues/1986 - [ ] Change `RemoteRepositoryModel.OwnerAccount` to be a `ActorModel` instead of an `IAccount` (@grokys) - [ ] Remove the `Octicon` from the model https://github.com/github/VisualStudio/pull/2008#discussion_r228090302 https://github.com/github/VisualStudio/blob/e3f811400f73aa722664c388253b76b24cf079c9/src/GitHub.Exports/Models/BranchModel.cs#L36 (removed this code) - [ ] Do we want `RemoteRepositoryModel` to continue implementing `IEquatable<RemoteRepositoryModel>` and `IComparable<RemoteRepositoryModel>`? - [ ] Is `TrimEnd` needed here https://github.com/github/VisualStudio/pull/2008#discussion_r228091388 - [ ] When I change the name of the `origin` remote I get an exception at this line: https://github.com/github/VisualStudio/pull/2025#issuecomment-436573418 ### Possible bugs - [ ] `LocalRepositoryModel.GetHashCode` and `Equals` should use consistent comparisons https://github.com/github/VisualStudio/blob/e3f811400f73aa722664c388253b76b24cf079c9/src/GitHub.Exports/Models/LocalRepositoryModel.cs#L36 https://github.com/github/VisualStudio/blob/e3f811400f73aa722664c388253b76b24cf079c9/src/GitHub.Exports/Models/LocalRepositoryModel.cs#L55 `OrdinalIgnoreCase` or `InvariantCultureIgnoreCase` maybe?
Copied from #2040
Still to do
RemoteRepositoryModelwhen we read the PR model from GraphQL, that way we can fix Fails to check out PR branch. #1986RemoteRepositoryModel.OwnerAccountto be aActorModelinstead of anIAccount(@grokys)Octiconfrom the model Refactor repository models (repository refactor part 1) #2008 (comment)VisualStudio/src/GitHub.Exports/Models/BranchModel.cs
Line 36 in e3f8114
RemoteRepositoryModelto continue implementingIEquatable<RemoteRepositoryModel>andIComparable<RemoteRepositoryModel>?TrimEndneeded here Refactor repository models (repository refactor part 1) #2008 (comment)originremote I get an exception at this line: Remove repository responsibilities from TeamExplorerServiceHolder (repository refactor part 2) #2025 (comment)Possible bugs
LocalRepositoryModel.GetHashCodeandEqualsshould use consistent comparisonsVisualStudio/src/GitHub.Exports/Models/LocalRepositoryModel.cs
Line 36 in e3f8114
VisualStudio/src/GitHub.Exports/Models/LocalRepositoryModel.cs
Line 55 in e3f8114
OrdinalIgnoreCaseorInvariantCultureIgnoreCasemaybe?