Skip to content
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

Merged

Conversation

oskrabanek
Copy link
Contributor

@oskrabanek oskrabanek commented Oct 14, 2021

Implementation of API proposal #60065 based on the changes proposed on the review
@safern

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Oct 14, 2021
@ghost
Copy link

ghost commented Oct 14, 2021

Tagging subscribers to this area: @maryamariyan, @safern
See info in area-owners.md if you want to be subscribed.

Issue Details

Implementation of API proposal #60065

Author: Andree643
Assignees: -
Labels:

area-Extensions-Configuration, community-contribution

Milestone: -

/// <summary>
/// Value of the current item
/// </summary>
public string Value { get; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should Value be nullable?

Copy link
Contributor Author

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.

Copy link
Member

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);
Copy link
Member

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?

@safern
Copy link
Member

safern commented Oct 18, 2021

Could you also update: https:/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:/dotnet/runtime/blob/main/docs/coding-guidelines/updating-ref-source.md

Copy link
Member

@safern safern left a 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?

@oskrabanek
Copy link
Contributor Author

@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]>
@eerhardt
Copy link
Member

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.

@oskrabanek
Copy link
Contributor Author

oskrabanek commented Nov 19, 2021

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.

Copy link
Member

@eerhardt eerhardt left a 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.

@eerhardt eerhardt self-assigned this Nov 30, 2021
Ondřej Škrabánek and others added 6 commits December 1, 2021 07:30
…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]>
@safern safern merged commit 5528e84 into dotnet:main Dec 1, 2021
@oskrabanek oskrabanek deleted the feature/get-debug-view-value-processing branch December 3, 2021 08:42
@ghost ghost locked as resolved and limited conversation to collaborators Jan 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Extensions-Configuration community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants