- Issue created by @wim leers
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 10:25am 3 November 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Arguably this needs tests. OTOH, this is such a trivial change/fix that that seems β¦ excessive.
Why wasn't this caught? Doesn't this have test coverage? Well, we were relying on the test coverage that β¨ Add optional validation constraint support to ConfigFormBase Fixed had introduced:
UpdateSettingsFormTest
. That explicitly tests this:$this->assertTrue($this->assertSession()->fieldExists('update_notify_emails')->hasClass('error'));
But β¦ that just happens to be a case where there is no nesting (no
#tree β TRUE
). - @wim-leers opened merge request.
- Status changed to Needs work
about 1 year ago 4:32pm 3 November 2023 - πΊπΈUnited States smustgrave
seems the suggestion in the MR is to remove the property. Not sure if that deserves it's own follow up or if it's simple enough here.
- Status changed to Closed: duplicate
about 1 year ago 10:10am 6 November 2023 - π¬π§United Kingdom alexpott πͺπΊπ
I've merged this into π ConfigFormBase + validation constraints: support composite form elements Needs review as they are extremely related and really need fixing together.
- Status changed to Needs review
about 1 year ago 11:09am 6 November 2023 - π¬π§United Kingdom alexpott πͺπΊπ
Well it turns out the other part of π ConfigFormBase + validation constraints: support composite form elements Needs review is super complex. Let's get this done first.
- @alexpott opened merge request.
- Status changed to RTBC
about 1 year ago 11:42am 6 November 2023 - π§πͺBelgium borisson_ Mechelen, π§πͺ
I don't fully understand the entire scope of the slack discussion, but this patch is not very complicated and it looks great. I can't run the test only changes on the MR, but the second MR fails where it is expected to fail. +1
- π¬π§United Kingdom alexpott πͺπΊπ
Opened π Replace calling FormState::setErrorByName() with an empty string with a new method Active at catch's request
- Status changed to Needs work
about 1 year ago 12:35pm 6 November 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
It took me a few minutes to understand the
if ($property_path === '') { // There is a map to a non-existing config key. Try to work backwards. $property_path = $violation->getParameters()['@key'] ?? ''; }
dark magic π§
I think we can make it less mysterious π
- Status changed to Needs review
about 1 year ago 12:39pm 6 November 2023 - π¬π§United Kingdom alexpott πͺπΊπ
@Wim Leers nice idea - I agree and applied your suggestion.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Pushed a better solution than what I suggested on the MR π€
- Status changed to Fixed
about 1 year ago 12:45pm 6 November 2023 - π¬π§United Kingdom catch
I just committed/pushed this already. Please open a follow-up or maybe we can quick fix it here.
- Assigned to wim leers
- Status changed to Needs work
about 1 year ago 1:00pm 6 November 2023 - @wim-leers opened merge request.
- Assigned to alexpott
- Status changed to Needs review
about 1 year ago 1:17pm 6 November 2023 - Status changed to RTBC
about 1 year ago 2:00pm 6 November 2023 - πΊπΈUnited States phenaproxima Massachusetts
This change makes sense to me, and I think it makes the error messages a little clearer. That's not a bad thing. No objections.
- Status changed to Fixed
about 1 year ago 4:49pm 6 November 2023 - π¬π§United Kingdom alexpott πͺπΊπ
Committed and pushed f9109dc8600 to 11.x and 56aeb82270c to 10.2.x. Thanks!
Thanks @Wim Leers
-
alexpott β
committed f9109dc8 on 11.x
Issue #3398974 follow-up by Wim Leers: Follow-up for #3382510:...
-
alexpott β
committed f9109dc8 on 11.x
-
alexpott β
committed 56aeb822 on 10.2.x
Issue #3398974 follow-up by Wim Leers: Follow-up for #3382510:...
-
alexpott β
committed 56aeb822 on 10.2.x
- Issue was unassigned.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Thanks!
See y'all in π ConfigFormBase + validation constraints: support composite form elements Needs review π
Automatically closed - issue fixed for 2 weeks with no activity.