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/6.0] Support JsonConverterFactory with src-gen #58652

Merged
merged 4 commits into from
Sep 7, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 3, 2021

Backport of #58398 to release/6.0

/cc @steveharter

Customer Impact

Support for JsonConverterFactory is currently broken in source generators. It has the potential to block customers from migrating existing reflection-based serialization DTOs to source gen.

Testing

Added testing that validate the broken scenaria.

Risk

Low to moderate. Accommodating factories requires a moderate amount of refactoring in product code.

@ghost
Copy link

ghost commented Sep 3, 2021

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

Issue Details

Backport of #58398 to release/6.0

/cc @steveharter

Customer Impact

Testing

Risk

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

area-System.Text.Json

Milestone: -

@Anipik
Copy link
Contributor

Anipik commented Sep 7, 2021

cc @danmoseley

Copy link
Contributor

@layomia layomia left a comment

Choose a reason for hiding this comment

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

LGTM, source/generated code changes are sound; test coverage is robust and addresses this core scenario (JsonConverterFactory + src-gen) for 6.0. cc @danmoseley

@danmoseley
Copy link
Member

Given the churn and that it's arguably a documentable limitation, I doubt this would make the RC2 bar (starting 9/14). But I'm OK taking this now as it will increase adoption of this new feature. As discussed offline, I appreciate the comprehensive tests but since there's significant churn here I would prefer to get another pair of eyes reviewing it before merging.

@danmoseley
Copy link
Member

Oh, I see @layomia did that. OK, we can merge when green.

@danmoseley danmoseley added the Servicing-approved Approved for servicing release label Sep 7, 2021
@Anipik Anipik merged commit 3b6f9c6 into release/6.0 Sep 7, 2021
@akoeplinger akoeplinger deleted the backport/pr-58398-to-release/6.0 branch September 9, 2021 11:25
@ghost ghost locked as resolved and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Text.Json Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants