- Issue created by @tedbow
- Merge request !759Draft: #3511447 Ensure layout model has an entry for all components → (Closed) created by tedbow
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
(the empty model entry for the drupicon component does really have any extra info)
should this be ?
- 🇺🇸United States tedbow Ithaca, NY, USA
This will affect any page with a no-props component and it is not clear to the user what the problem is
- 🇺🇸United States tedbow Ithaca, NY, USA
None of the test failed with "No props sources stored..." error I mentioned in the comments. Probably this means we don't test this situation. It don't think it happens if you try to publish an XB field that you just added a no-props component. It only happens when it was only published once with a no-props component and then you publish again.
Will try to update \Drupal\Tests\experience_builder\Kernel\ApiAutoSaveControllerTest::testApiAutoSaveControllerPost with a test case for this
- Merge request !795#3511447/ only require inputs for components that require them → (Merged) created by tedbow
- 🇺🇸United States tedbow Ithaca, NY, USA
Going to take a break from this right now, so unassigning myself.
There are 2 different MR's
- 795 changes to handle a component not having if an input for a component if
\Drupal\experience_builder\ComponentSource\ComponentSourceInterface::requiresExplicitInput
returns for false for the component - 759 just makes sure
\Drupal\experience_builder\Controller\ApiLayoutController::buildLayout()
sets an empty array in the model if\Drupal\experience_builder\ComponentSource\ComponentSourceInterface::requiresExplicitInput
returns for false for the component
795 personally feels more correct for me.
- 795 changes to handle a component not having if an input for a component if
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Seems reasonable.
I imagine the unit test will be difficult to unpick in the future - its a shame we couldn't modify a functional test to test the real thing - but we can deal with that in the future