-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git extension integration in Repository Management. #3896
Conversation
* Adding the Repository tool * WIP * View is set up. Test ata as well. * Aligning columns. Adding column spacing. * Reverting this change * Update tools/RepositoryManagement/DevHome.RepositoryManagement/Strings/en-us/Resources.resw Co-authored-by: Kristen Schau <47155823+krschau@users.noreply.github.com> * Adressing comments * Revert "Reverting this change" This reverts commit 711dd78. * Moving to experimental * Disabling by default * Removing from experimental. Addressing comments. * Reverting to main * Update tools/RepositoryManagement/DevHome.RepositoryManagement/DevHome.RepositoryManagement.csproj Co-authored-by: Kristen Schau <47155823+krschau@users.noreply.github.com> * Update tools/RepositoryManagement/DevHome.RepositoryManagement/Extensions/ServiceExtensions.cs Co-authored-by: Kristen Schau <47155823+krschau@users.noreply.github.com> * Removing duplicate xaml code * Adding to the mermaid diagram * Got lost in the shuffle * Removing a refrence --------- Co-authored-by: Kristen Schau <47155823+krschau@users.noreply.github.com>
* WIP * EF works. Can save data. * Can read and write. :) * Repos are added when cloned. * Putting save/load into a different class * Adding default values * Cleaning up names and using statements * More comments * Removing refrence to the public nuget * Restoring the nuget config * Adding a test. Better defining dates * Adding some tests * More comments. * Better path comparison. * Removing unused equals code * Adding more comments. Making new migrations
…thub.com/microsoft/devhome into user/dhoehna/RepositoryManagementFeature
tools/RepositoryManagement/DevHome.RepositoryManagement/Services/EnhanceRepositoryService.cs
Outdated
Show resolved
Hide resolved
...yManagement/DevHome.RepositoryManagement/ViewModels/RepositoryManagementMainPageViewModel.cs
Show resolved
Hide resolved
...yManagement/DevHome.RepositoryManagement/ViewModels/RepositoryManagementMainPageViewModel.cs
Outdated
Show resolved
Hide resolved
...yManagement/DevHome.RepositoryManagement/ViewModels/RepositoryManagementMainPageViewModel.cs
Outdated
Show resolved
Hide resolved
...yManagement/DevHome.RepositoryManagement/ViewModels/RepositoryManagementMainPageViewModel.cs
Outdated
Show resolved
Hide resolved
tools/RepositoryManagement/DevHome.RepositoryManagement/Services/EnhanceRepositoryService.cs
Outdated
Show resolved
Hide resolved
tools/RepositoryManagement/DevHome.RepositoryManagement/Services/EnhanceRepositoryService.cs
Outdated
Show resolved
Hide resolved
...yManagement/DevHome.RepositoryManagement/ViewModels/RepositoryManagementMainPageViewModel.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
database/DevHome.Database/DatabaseModels/RepositoryManagement/Repository.cs
Outdated
Show resolved
Hide resolved
database/DevHome.Database/Services/RepositoryManagementDataAccessService.cs
Outdated
Show resolved
Hide resolved
database/DevHome.Database/Services/RepositoryManagementDataAccessService.cs
Outdated
Show resolved
Hide resolved
tools/RepositoryManagement/DevHome.RepositoryManagement/Services/RepositoryEnhancerService.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The decision to associate the folder with the first LocalRepository
provider we see is a non-starter. If there is only a single provider installed, it's not as crucial, but in all other cases the user needs the choice to select which provider. Leaving this up to chance was an extremely disriptive bug that was already fixed earlier. Please don't regress this part.
tools/RepositoryManagement/DevHome.RepositoryManagement/Services/RepositoryEnhancerService.cs
Outdated
Show resolved
Hide resolved
tools/RepositoryManagement/DevHome.RepositoryManagement/Services/RepositoryEnhancerService.cs
Outdated
Show resolved
Hide resolved
tools/RepositoryManagement/DevHome.RepositoryManagement/Services/RepositoryEnhancerService.cs
Outdated
Show resolved
Hide resolved
tools/RepositoryManagement/DevHome.RepositoryManagement/Strings/en-us/Resources.resw
Outdated
Show resolved
Hide resolved
...itoryManagement/DevHome.RepositoryManagement/ViewModels/RepositoryManagementItemViewModel.cs
Outdated
Show resolved
Hide resolved
...itoryManagement/DevHome.RepositoryManagement/ViewModels/RepositoryManagementItemViewModel.cs
Show resolved
Hide resolved
...epositoryManagement/DevHome.RepositoryManagement/Views/RepositoryManagementMainPageView.xaml
Outdated
Show resolved
Hide resolved
…Repository.cs Co-authored-by: Ryan Shepherd <ryansh@microsoft.com>
@DefaultRyan Reminder to check that your concerns were addressed when you're back. Your blocking comment seems to be addressed in fa22fce |
@@ -100,9 +100,6 @@ public App() | |||
}). | |||
ConfigureServices((context, services) => | |||
{ | |||
// Add databse connection | |||
services.AddDatabase(context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this a duplicate from somewhere else?
|
||
foreach (var repositoryDirectory in Directory.GetDirectories(_repositoryCloneLocation, "*", SearchOption.AllDirectories).Reverse()) | ||
{ | ||
Directory.Delete(repositoryDirectory); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might benefit from a "Try-catch" since the deletion of each file/folder might fail, and shouldn't fail the reset() and should proceed to the next item. Maybe log failure and proceed is best, since any dependent tests will indicate if it's a problem.
<value>More options for repository {0}</value> | ||
<comment>{Locked="{0}"} {0} name of the repository. Automation name for the ... menu</comment> | ||
</data> | ||
<data name="MinuteAbbreviation" xml:space="preserve"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't fine where this is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just found it. Should it be "mins" ?
<value>Toggle to allow tester to change the source control provider.</value> | ||
</data> | ||
<data name="RepositoryManagementSourceControlSelector_Name" xml:space="preserve"> | ||
<value>Show Souce Control Provider</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<value>Show Souce Control Provider</value> | |
<value>Show Source Control Provider</value> | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't see anything blocking. LGTM!
Summary of the pull request
2 main changes
Minor changes
Known Issues
A note about the TODOs.
All TODOs should be finished in my next PR. The next PR is about enabling database migration.
References and relevant issues
Detailed description of the pull request / Additional comments
A note about the massive number of commits.
I started development of this branch while #3836 was in review. Their commits are also in this one.
The commit 3c24c6a merges main into this branch, this includes the changes from #3836.
All file changes are from this PR.
Validation steps performed
PR checklist
Movies!
Repository Actions!
https://github.com/user-attachments/assets/9009d906-04ab-4bd9-b492-5a020d96416f
Filtering and sorting!
FilterAndSort.mp4
Picture!
Users can now select a source control provider and it is toggleable!
https://github.com/user-attachments/assets/695232ce-6d0c-45e6-b9f1-fe7b4cecc896
Pay no mind to the un aligned columns. They will be fixed in another PR.
Correct picture of the toggle name and description.