This repository was archived by the owner on Jun 21, 2023. It is now read-only.
-
Couldn't load subscription status.
- Fork 1.2k
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Repository model refactoring still to do #2050
Copy link
Copy link
Open
Labels
Description
Copied from #2040
Still to do
- Read the
RemoteRepositoryModelwhen we read the PR model from GraphQL, that way we can fix Fails to check out PR branch. #1986 - Change
RemoteRepositoryModel.OwnerAccountto be aActorModelinstead of anIAccount(@grokys) - Remove the
Octiconfrom the model Refactor repository models (repository refactor part 1) #2008 (comment)
(removed this code)Repository = branch.IsRemote ? gitService.CreateLocalRepositoryModel(branch.Remote.Url) : repo; - Do we want
RemoteRepositoryModelto continue implementingIEquatable<RemoteRepositoryModel>andIComparable<RemoteRepositoryModel>? - Is
TrimEndneeded here Refactor repository models (repository refactor part 1) #2008 (comment) - When I change the name of the
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 comparisons
return 17 * 23 + (Name?.GetHashCode() ?? 0) * 23 + (Owner?.GetHashCode() ?? 0) * 23 + (LocalPath?.TrimEnd('\\').ToUpperInvariant().GetHashCode() ?? 0);
string.Equals(LocalPath?.TrimEnd('\\'), other.LocalPath?.TrimEnd('\\'), StringComparison.CurrentCultureIgnoreCase);
OrdinalIgnoreCaseorInvariantCultureIgnoreCasemaybe?