-
Notifications
You must be signed in to change notification settings - Fork 324
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
Implementing Repository Management actions + Database changes. #3836
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
common/TelemetryEvents/DevHomeDatabase/DevHomeDatabaseContextEvent.cs
Outdated
Show resolved
Hide resolved
common/TelemetryEvents/RepositoryManagement/RepositoryLineItemErrorEvent.cs
Show resolved
Hide resolved
database/DevHome.Database/DatabaseModels/RepositoryManagement/Repository.cs
Outdated
Show resolved
Hide resolved
...itoryManagement/DevHome.RepositoryManagement/ViewModels/RepositoryManagementItemViewModel.cs
Show resolved
Hide resolved
...itoryManagement/DevHome.RepositoryManagement/ViewModels/RepositoryManagementItemViewModel.cs
Show resolved
Hide resolved
...itoryManagement/DevHome.RepositoryManagement/ViewModels/RepositoryManagementItemViewModel.cs
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
…Repository.cs Co-authored-by: Branden Bonaby <105318831+bbonaby@users.noreply.github.com>
...itoryManagement/DevHome.RepositoryManagement/ViewModels/RepositoryManagementItemViewModel.cs
Outdated
Show resolved
Hide resolved
public class DevHomeDatabaseContext : DbContext | ||
{ | ||
public DbSet<Repository> Repositories { get; set; } | ||
private const string DatabaseFileName = "DevHome.db"; |
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.
Should probably add a Const value for this file name/path and add it somewhere central (like config?).
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.
Nit: I'm also not a fan of the name "DevHome.db". Mabye something like "DevHomeMachineData.db" to reflect that this is data about what's on the machine (at least that's what I think this is for) :)
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 database is for all of devhome.
I'll look into making the path, and name const
DevHome.db
is for all of DevHome local for every user.
Maybe UserDevHomeData.db
?
common/TelemetryEvents/DevHomeDatabase/DevHomeDatabaseContextEvent.cs
Outdated
Show resolved
Hide resolved
database/DevHome.Database/Services/RepositoryManagementDataAccessService.cs
Outdated
Show resolved
Hide resolved
...itoryManagement/DevHome.RepositoryManagement/ViewModels/RepositoryManagementItemViewModel.cs
Outdated
Show resolved
Hide resolved
...itoryManagement/DevHome.RepositoryManagement/ViewModels/RepositoryManagementItemViewModel.cs
Outdated
Show resolved
Hide resolved
database/DevHome.Database/Services/RepositoryManagementDataAccessService.cs
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
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.
LGTM, nothing blocking, and TODO's are being taken care of in https://github.com/microsoft/devhome/tree/user/dhoehna/DatabaseMigrationsAndTodos
Summary of the pull request
This PR allows users to
All from the repository management page! Yay!
In addition to logic changes. I made some database changes
IsHidden
is part of the Repository entityRepositoryManagementDataAccessService
toDevHome.Database
to prevent a circular dependency. Now I can callMakeConfigurationFileFromRepoAndGit
without moving the code base to a new project.Repository
test.Repository
Another change is in Navigation. Changed navigation to use a Dictionary instead of multiple if/else.
References and relevant issues
Detailed description of the pull request / Additional comments
This PR has many TODO:'s and they will be removed in another PR this week as I address them.
This feature is still experimental.
Validation steps performed
PR checklist