- Issue created by @lauriii
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
AFAICT this is a bug in
ClientServerConversionTrait
, because the semantics are different.The error originates from
new Count(['min' => 1], minMessage: 'Empty component subtree. A component subtree must contain >=1 populated slot (with >=1 component instance). Empty component subtrees must be omitted.'),
in
ComponentTreeStructureConstraintValidator
. - First commit to issue fork.
- 🇺🇸United States tedbow Ithaca, NY, USA
I just removed the constraint and quickly removed the test expectations. Not sure if the tests will all pass. also need to see if we need any new test cases
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Why remove the constraint? Why not instead modify
ClientServerConversionTrait
and add an explicit test for handling this inClientServerConversionTraitTest
? 🤔 - Merge request !731#3508171 do not set parent if slot has not components → (Merged) created by tedbow
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
👍 — but can we add a (tiny) test for this? 🙏
- 🇺🇸United States tedbow Ithaca, NY, USA
@wim leers I added another component to the existing
\Drupal\Tests\experience_builder\Kernel\ClientServerConversionTraitTest::testConvertClientToServer
But also noticed this doesn't have tests for slots that filled so I will add that here too.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Test coverage looks solid 👍
Will merge this, assuming the test-only CI run fails as expected.
-
wim leers →
committed 18d9522d on 0.x authored by
tedbow →
Issue #3508171 by tedbow, lauriii, wim leers: Unexpected empty subtree...
-
wim leers →
committed 18d9522d on 0.x authored by
tedbow →
Automatically closed - issue fixed for 2 weeks with no activity.