The Wayback Machine - https://web.archive.org/web/20220811010714/https://github.com/symfony/symfony/pull/46527
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

[Serializer] Forget partially collected traces #46527

Merged
merged 1 commit into from May 31, 2022

Conversation

mtarld
Copy link
Contributor

@mtarld mtarld commented May 31, 2022

Q A
Branch? 6.1
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #46522
License MIT

If serialization fails whereas a nested normalizer has already succeeded, a trace will be created but is still partially filled.
But these traces aren't useful and might be omitted.

Therefore, as discussed in #46522, this change will simply make the SerializerDataColelctor::lateCollect method ignore partial traces.

@nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented May 31, 2022

Thank you @mtarld.

@nicolas-grekas nicolas-grekas merged commit fd96959 into symfony:6.1 May 31, 2022
7 of 9 checks passed
@fabpot fabpot mentioned this pull request Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants