Skip to content

[Serializer] Forget partially collected traces #46527

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

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

Thank you @mtarld.

@nicolas-grekas nicolas-grekas merged commit fd96959 into symfony:6.1 May 31, 2022
@fabpot fabpot mentioned this pull request Jun 9, 2022
@mtarld mtarld deleted the fix/serializer-data-collector branch December 1, 2023 09:12
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.

3 participants