-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Feature/get debug view value processing #60391
Feature/get debug view value processing #60391
Conversation
Tagging subscribers to this area: @maryamariyan, @safern Issue DetailsImplementation of API proposal #60065
|
/// <summary> | ||
/// Value of the current item | ||
/// </summary> | ||
public string Value { get; } |
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 Value
be nullable?
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.
As mentioned in the issue comment value is non-nullable by definition of the IConfigurationProvider.
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.
It seems like it is conflicting with valueAndProvider.Value
as that seems to be nullable and the build is failing because of that.
@@ -69,7 +91,7 @@ public static string GetDebugView(this IConfigurationRoot root) | |||
} | |||
} | |||
|
|||
return (null, null); | |||
return ("", null); |
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.
Why are we changing this behavior?
Could you also update: https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.Extensions.Configuration.Abstractions/ref/Microsoft.Extensions.Configuration.Abstractions.cs to add the new APIs? Here are instructions on how to do that: https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/updating-ref-source.md |
...libraries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationRootExtensions.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.
@Andree643 looks good overall! Could you also please add some tests for the new API?
Sure, will do. |
…src/ConfigurationRootExtensions.cs Co-authored-by: Santiago Fernandez Madero <[email protected]>
Hi @Andree643 - do you have an idea when the tests for the new API will be added? Let us know if you are interested in pushing this PR forward. |
Hi @eerhardt. I'll do my best to make it next week. I have some issues with building the solution and trying to resolve it. |
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.
Looks pretty good. I just had some nits on some doc comments. Once those are addressed, I believe this can be merged.
...braries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationDebugViewContext.cs
Outdated
Show resolved
Hide resolved
...braries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationDebugViewContext.cs
Outdated
Show resolved
Hide resolved
...braries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationDebugViewContext.cs
Outdated
Show resolved
Hide resolved
...braries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationDebugViewContext.cs
Outdated
Show resolved
Hide resolved
...libraries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationRootExtensions.cs
Outdated
Show resolved
Hide resolved
...braries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationDebugViewContext.cs
Outdated
Show resolved
Hide resolved
…src/ConfigurationDebugViewContext.cs Docs update Co-authored-by: Eric Erhardt <[email protected]>
…src/ConfigurationDebugViewContext.cs Docs updateDocs update Co-authored-by: Eric Erhardt <[email protected]>
…src/ConfigurationDebugViewContext.cs Docs update Co-authored-by: Eric Erhardt <[email protected]>
…src/ConfigurationDebugViewContext.cs Docs update Co-authored-by: Eric Erhardt <[email protected]>
…src/ConfigurationRootExtensions.cs Docs update Co-authored-by: Eric Erhardt <[email protected]>
…src/ConfigurationDebugViewContext.cs Docs update Co-authored-by: Eric Erhardt <[email protected]>
Implementation of API proposal #60065 based on the changes proposed on the review
@safern