-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Git extension integration in Repository Management. (#3896)
* Refining Repository Management's UI. (#3557) * 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> * Adding EF core, database project, and some usage. (#3674) * 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 * Moving this to experimental * WIP * Some telemetry and logging * THings build again. * Returning this back * I believe I am understanding this. * Can update * Almost done with open in FE * Try/Catching everything. Open in FE should be done. * Open in CMD works. :) * Re-adding changes lost due to merge * Getting saving straightened out. * WIP * Move Repository done. * Removing 1:1. Finishing RemoveFromList * Adding _items * Adding configuration file information to the repository table * Opening the configuration file location in FE * Deleting a repository. * Add to winget configuration file. * Cleaning up the code * Icon for a configuration file. UI updates when hiding a repo * All the buttons do something. * Removing 'local' * Making sure the test works * New test works * Another TODO * Fixing more things before PR. * Removing another un-used using. * MOre un used usings. * Another Todo * Anotehr TODO * Localized strings * WIP * Adding enhanced information if it can be found. * Commit, Filtering, and Sorting. * Fixing up the merge * Removing Move/Delete because of a bug in FileExplorerGitIntegration. * Adding a TODO * A small commit * Removing some unused usings * Update tools/RepositoryManagement/DevHome.RepositoryManagement/Strings/en-us/Resources.resw Co-authored-by: Kristen Schau <47155823+krschau@users.noreply.github.com> * Update tools/RepositoryManagement/DevHome.RepositoryManagement/Strings/en-us/Resources.resw Co-authored-by: Kristen Schau <47155823+krschau@users.noreply.github.com> * Update tools/RepositoryManagement/DevHome.RepositoryManagement/Strings/en-us/Resources.resw Co-authored-by: Kristen Schau <47155823+krschau@users.noreply.github.com> * Adressing comments * Adressing comments * Addressing code quality comments * Update database/DevHome.Database/DatabaseModels/RepositoryManagement/Repository.cs Co-authored-by: Ryan Shepherd <ryansh@microsoft.com> * Fixing some issues. * Added a TODO * Adding drop down to select a source control provider * Hide source control selection * FIxing indentation --------- Co-authored-by: Kristen Schau <47155823+krschau@users.noreply.github.com> Co-authored-by: Ryan Shepherd <ryansh@microsoft.com>
- Loading branch information
1 parent
9654c0e
commit 3b8cba0
Showing
29 changed files
with
1,225 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
common/TelemetryEvents/DevHomeDatabase/DevHomeDatabaseContextEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Diagnostics.Tracing; | ||
using DevHome.Telemetry; | ||
using Microsoft.Diagnostics.Telemetry.Internal; | ||
|
||
namespace DevHome.Common.TelemetryEvents.DevHomeDatabase; | ||
|
||
[EventData] | ||
public class DevHomeDatabaseContextEvent : EventBase | ||
{ | ||
public override PartA_PrivTags PartA_PrivTags => PartA_PrivTags.ProductAndServicePerformance; | ||
|
||
public string Step { get; } = string.Empty; | ||
|
||
public int HResult { get; } | ||
|
||
public string ExceptionMessage { get; } = string.Empty; | ||
|
||
public DevHomeDatabaseContextEvent(string step) | ||
{ | ||
Step = step; | ||
} | ||
|
||
public DevHomeDatabaseContextEvent(string step, Exception ex) | ||
{ | ||
Step = step; | ||
HResult = ex.HResult; | ||
ExceptionMessage = ex.Message; | ||
} | ||
|
||
public override void ReplaceSensitiveStrings(Func<string, string> replaceSensitiveStrings) | ||
{ | ||
// no sensitive strings to replace. | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
common/TelemetryEvents/DevHomeDatabase/DevHomeDatabaseEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Diagnostics.Tracing; | ||
using DevHome.Telemetry; | ||
using Microsoft.Diagnostics.Telemetry.Internal; | ||
|
||
namespace DevHome.Common.TelemetryEvents.DevHomeDatabase; | ||
|
||
[EventData] | ||
public class DevHomeDatabaseEvent : EventBase | ||
{ | ||
public override PartA_PrivTags PartA_PrivTags => PartA_PrivTags.ProductAndServicePerformance; | ||
|
||
public string Step { get; } = string.Empty; | ||
|
||
public int HResult { get; } | ||
|
||
public string ExceptionMessage { get; } = string.Empty; | ||
|
||
public DevHomeDatabaseEvent(string step) | ||
{ | ||
Step = step; | ||
} | ||
|
||
public DevHomeDatabaseEvent(string step, Exception ex) | ||
{ | ||
Step = step; | ||
HResult = ex.HResult; | ||
ExceptionMessage = ex.Message; | ||
} | ||
|
||
public override void ReplaceSensitiveStrings(Func<string, string> replaceSensitiveStrings) | ||
{ | ||
// No sensitive strings to replace. | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
common/TelemetryEvents/RepositoryManagement/EnhanceRepositoryErrorEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Diagnostics.Tracing; | ||
using DevHome.Telemetry; | ||
using Microsoft.Diagnostics.Telemetry.Internal; | ||
|
||
namespace DevHome.Common.TelemetryEvents.RepositoryManagement; | ||
|
||
[EventData] | ||
public class EnhanceRepositoryErrorEvent : EventBase | ||
{ | ||
public override PartA_PrivTags PartA_PrivTags => PartA_PrivTags.ProductAndServicePerformance; | ||
|
||
public string Action { get; } = string.Empty; | ||
|
||
public int Hresult { get; } | ||
|
||
public string ErrorMessage { get; } = string.Empty; | ||
|
||
public string RepositoryName { get; } = string.Empty; | ||
|
||
public EnhanceRepositoryErrorEvent(string action, int hresult, string errorMessage, string repositoryName) | ||
{ | ||
Action = action; | ||
Hresult = hresult; | ||
ErrorMessage = errorMessage; | ||
RepositoryName = repositoryName; | ||
} | ||
|
||
public override void ReplaceSensitiveStrings(Func<string, string> replaceSensitiveStrings) | ||
{ | ||
// No sensitive strings to replace | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
...240919221355_InitialMigration.Designer.cs → ...240920200626_InitialMigration.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.