-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Group 4] Enable nullable annotations for Microsoft.Extensions.Configuration.Binder
#57418
[Group 4] Enable nullable annotations for Microsoft.Extensions.Configuration.Binder
#57418
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Tagging subscribers to this area: @maryamariyan, @safern Issue DetailsNotes:
|
Microsoft.Extensions.Configuration.Binder
# Conflicts: # src/libraries/Microsoft.Extensions.Configuration.Abstractions/ref/Microsoft.Extensions.Configuration.Abstractions.csproj # src/libraries/Microsoft.Extensions.Configuration.Abstractions/src/Microsoft.Extensions.Configuration.Abstractions.csproj # src/libraries/Microsoft.Extensions.Configuration.Binder/ref/Microsoft.Extensions.Configuration.Binder.csproj # src/libraries/Microsoft.Extensions.Configuration.Binder/src/Microsoft.Extensions.Configuration.Binder.csproj
# Conflicts: # src/libraries/Microsoft.Extensions.Configuration.Binder/src/ConfigurationBinder.cs
This reverts commit 5dac613.
@maxkoshevoi - let's concentrate on getting the Group 1, 2 and 3 libraries completed. Since it takes a lot of effort to review these PRs, and they have been sitting for a while, what do you think about closing the "Group 4" PRs for now? And we can open them again when the lower level libraries are complete? |
We do have an effort of trying to keep on top of our open PRs. As you can see, we currently have over 220 open PRs, some of them have been open for months with no activity. The harm is someone coming to the PR and trying to review it, but it isn't ready to be reviewed. It also affects managing the PRs ("these ones can be reviewed" vs. "these ones are waiting for something"). |
I think that would be great for now. Thanks! |
# Conflicts: # src/libraries/Microsoft.Extensions.Configuration.Binder/src/ConfigurationBinder.cs
...crosoft.Extensions.Configuration.Binder/ref/Microsoft.Extensions.Configuration.Binder.csproj
Outdated
Show resolved
Hide resolved
...crosoft.Extensions.Configuration.Binder/ref/Microsoft.Extensions.Configuration.Binder.csproj
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration.Binder/src/ConfigurationBinder.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration.Binder/src/ConfigurationBinder.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Configuration.Binder/src/ConfigurationBinder.cs
Show resolved
Hide resolved
type: itemType, | ||
instance: null, | ||
config: section, | ||
options: options); | ||
if (item != null) | ||
{ | ||
addMethod.Invoke(collection, new[] { item }); | ||
addMethod?.Invoke(collection, new[] { item }); |
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.
If there is no Add
method, this will now silently no longer do anything. Is that what we want to happen?
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.
We didn't seem to do anything before (there's an empty catch on the line bellow).
src/libraries/Microsoft.Extensions.Configuration.Binder/src/ConfigurationBinder.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. Thanks for the contribution here, @maxkoshevoi.
I pushed a change that should allow CI to pass successfully. Will merge when the CI is green.
Related to #43605, #54012
Annotated according to:
Microsoft.Extensions.Configuration.Abstractions
#57401