-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Composer page not showing errors #1615
Composer page not showing errors #1615
Conversation
I am already working on the SonataAdminBundle part: sonata-project/SonataAdminBundle#7922 You can take a look at how is the output suposed to be. You need to install |
Thank you for your PR ❤️ But before start to work just comment in #1495, because we can avoid more the on person work in the same thing. |
I have pushed some commits to make it work with my PR on admin bundle. Also have removed usage of more jQuery, and fixed edit. There are some missing pieces:
|
I'll test this branch :) |
Hey @jordisala1991 I tested this branch and it's working as expect ❤️ Edit 1: I just saw a small issue when I'm updating But I guess it's fine! |
Screen.Recording.2022-09-21.at.10.15.13.movif there are some invalid field, the edit button is blocked, and I need to refresh the page to make this work again |
Yes, is already detected:
from my previous comment. |
I added 2 commit :
|
I know where is the disabled behavior, (It is inside sonata), but there are still one thing to understand, why this doesn't happen on creation, I am investigating.. |
and what is it mean 😄 ? |
It is ready now, but it misses the admin-bundle PR. That needs to be polished and merged and released before we can merge this one. |
2 things missing:
|
I'm testing! |
Screen.Recording.2022-09-28.at.08.37.23.movNice work @jordisala1991 composer page is working quite nice, create and update work as expected ❤️ |
I just added a browser test to ensure errors are thrown as expected.
Also nice work to @JeromeEngelnAdeliom for starting the PR. :) |
Thank you @jordisala1991 ;) |
Thanks |
Proposition to help with issue "Composer page not showing errors"
See #1495 (comment)
I added some JS to catch json errors and display below form fields.
To make it work I also modified the sonata admin bundle CRUDController :
https://github.com/sonata-project/SonataAdminBundle/blob/eb006137a91100ea416a05818f47172022337912/src/Controller/CRUDController.php#L1356
by adding information about what field trigger an error ($errorsByOrigin) :
=> this is an example, If you have some ideas to avoid a sonata admin bundle modification.
I hope it can help to move forward with 4.x release
Actual result after submit rss block creation :