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

[release/7.0] Fix Configuration to ensure calling the property setters. #80562

Merged
merged 3 commits into from
Jan 13, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 12, 2023

Backport of #80438 to release/7.0

/cc @tarekgh

Customer Impact

Apps which define a configuration and expect to bind to app types, in some cases property setters of such type get skipped (not called) and causing the types not initialized correctly. This causes the apps to see unexpected behaviors when using the objects created by the configuration. This is a regression caused by some changes done in .NET 7.0 refactoring and support of new scenarios.

Testing

I spent enough time manually testing all scenarios related to this change and I have added more regression tests to avoid running into such regressions again. I have successfully run all regression tests too.

Risk

Very low, the change is a quite simple and scoped fix which shouldn't affect anything else more than ensuring calling the property setters during the binding.

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

@ghost
Copy link

ghost commented Jan 12, 2023

Tagging subscribers to this area: @dotnet/area-extensions-configuration
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #80438 to release/7.0

/cc @tarekgh

Customer Impact

Testing

Risk

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

Author: github-actions[bot]
Assignees: -
Labels:

area-Extensions-Configuration

Milestone: -

@tarekgh tarekgh requested a review from eerhardt January 12, 2023 17:50
@tarekgh tarekgh self-assigned this Jan 12, 2023
@tarekgh
Copy link
Member

tarekgh commented Jan 12, 2023

I am going to add the package authoring change here.

@tarekgh tarekgh added the Servicing-consider Issue for next servicing release review label Jan 12, 2023
@tarekgh tarekgh requested a review from layomia January 12, 2023 19:14
@@ -5,8 +5,8 @@
<EnableDefaultItems>true</EnableDefaultItems>
<IsPackable>true</IsPackable>
<EnableAOTAnalyzer>true</EnableAOTAnalyzer>
<ServicingVersion>2</ServicingVersion>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<ServicingVersion>3</ServicingVersion>
Copy link
Member

Choose a reason for hiding this comment

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

@ViktorHofer @carlossanlop @ericstj could you please help review this package authoring change in this file? Just to ensure I am doing the right thing here.

Copy link
Member

Choose a reason for hiding this comment

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

Looks good.

@carlossanlop
Copy link
Member

CI failures unrelated. I opened an issue, I'm seeing some other PRs affected by this: #80578

@tarekgh tarekgh added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jan 13, 2023
@tarekgh
Copy link
Member

tarekgh commented Jan 13, 2023

This is approved offline by the email.

@carlossanlop carlossanlop added this to the 7.0.3 milestone Jan 13, 2023
@carlossanlop
Copy link
Member

Approved by Tactics via email (7.0.3).
Signed off by area owner.
Required OOB changes look good.
CI failure is unrelated.
Ready to merge. :shipit:

@carlossanlop carlossanlop merged commit 9510998 into release/7.0 Jan 13, 2023
@carlossanlop carlossanlop deleted the backport/pr-80438-to-release/7.0 branch January 13, 2023 04:39
@ghost ghost locked as resolved and limited conversation to collaborators Feb 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants