Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WebProfilerBundle][Form] Add information about form synchronization err...#11487

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
psliwa wants to merge1 commit intosymfony:masterfrompsliwa:issue9891

Conversation

@psliwa
Copy link

QA
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#9891,#9989,#5607
LicenseMIT
Doc PR

When form data transformation fails, the origin error message is lost. This error shouldn't be shown to user, because this is technical error, so maybe a good idea is to show transformation failures in web profiler inform panel belowerrors section?

There are no BC-breaks in this PR, I have added public internal method toSymfony\Component\Form\Form class, that returnsTransformationFailedException, it is used byFormDataExtractor.Symfony\Component\Form\FormInterface has not been touched by me, because that would be a BC-break.

@sstok
Copy link
Contributor

Epic 👍 sometimes you get a failed transformation because your not using some internal stuff correctly. And its really hard to debug such cases.

Copy link
Member

Choose a reason for hiding this comment

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

Small detail: we are usingnull !== xxx in Symfony.

@fabpot
Copy link
Member

Looks like a great idea.@webmozart Can you check the implementation?

@fabpot
Copy link
Member

To make it even more obvious, what about changing the color to red in the toolbar itself (and probably increment the error count to 1 in this case)?

@psliwa
Copy link
Author

ok, error count in toolbar and in form panel is incremented by 1 for every transformation failure.

Copy link
Member

Choose a reason for hiding this comment

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

TransformationFailedException|null

@webmozart
Copy link
Contributor

Thanks for your PR@psliwa! I had a slightly different approach in mind which I implemented in#12052 and#12054. Let me hear what you think about it.

Cheers :)

@psliwa
Copy link
Author

I thought about do that in simillar way as you, but I realized there would be BC-break so I decided to do that in less invasively way. If BC-break is acceptable in that situation, your solution is more elegant and flexible ;)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@psliwa@sstok@fabpot@webmozart@stof

[8]ページ先頭

©2009-2025 Movatter.jp