- Issue created by @bnjmnm
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Is this a pure client-side bug? Because if it's not, then
\Drupal\Tests\experience_builder\Kernel\ComponentInputsFormTest
(introduced in π SDCs with optional images without examples cannot be placed Active ) is the ideal test to expand β that is currently squarely focused on optional images. - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
This reminded me of π Image upload breaks after optional image without an image gets published Active .
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Will take a look later today. The first fileβs changes look sensible! π
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
wim leers β credited larowlan β .
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
This reminded me of similar server-side code. Which is why I was pretty sure that code is dead now (it was introduced in π Maintain a per-component set of prop expressions/sources Active ). And it indeed is, because tests are passing.
I contemplated whether this should be fixed on the server or client side. But AFAICT it is objectively better for the client-side to handle the fall back to the default value for required props, because that's necessary for:
- real-time updates of the preview canvas β π Implement endpoint for realtime preview Active
- β¦ especially for code components β this will allow them to instantly re-render, without talking to the server!
In testing my theory, I ran into consistent e2e test failures (consistent on CI and locally). But then, for reasons I do not understand, it turns out that if I swap the execution order of 2 test cases without changing a single thing, it passes π€―
RTBC, but needs to be scrutinized by @bnjmnm for that test order swap π
- πΊπΈUnited States bnjmnm Ann Arbor, MI
Needs signoff that @hooroomoo can grant + some of the test improvements need another set of eyes as they were added after the RTBC
- First commit to issue fork.
-
hooroomoo β
committed 8eae66a5 on 0.x authored by
bnjmnm β
Issue #3528393 by bnjmnm, wim leers, larowlan: Required image can't be...
-
hooroomoo β
committed 8eae66a5 on 0.x authored by
bnjmnm β