- Issue created by @tedbow
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
See
core/modules/system/tests/modules/sdc_test/components/no-props/no-props.component.yml
for an example of a propless SDC.So yes, this is intended to work. And we should have an explicit test for it. 👍
- Assigned to wim leers
- Issue was unassigned.
- Status changed to Needs work
7 months ago 11:42am 23 July 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Test exists now. And it fails as expected.
Note that the proposed resolution presents
Check if the component has props defined before trying resolving them.
as the only possible choice.
But there's another possible choice: storing an empty list of props even for propless component instances. It keeps the structure simpler and non-conditional. I think that would make future component upgrade paths simpler (e.g. for adding props to a component that is already in use — which 📌 Ensure querying JSON nested values when parent keys are unknown is possible in all supported databases Needs work is laying the groundwork for).
The cost of that simplicity is slightly more storage space being consumed, because there's additional JSON to be stored.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Thanks to the draft MR I pushed, with clear
@todo
s, I think this is now actionable by novice contributors. - Assigned to tedbow
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
This is now blocking 📌 Create validation constraint for ComponentTreeStructure Needs work : https://git.drupalcode.org/project/experience_builder/-/merge_requests/1...
- Assigned to wim leers
- Status changed to Needs review
7 months ago 7:40pm 29 July 2024 - Assigned to tedbow
- Status changed to Needs work
7 months ago 4:38pm 30 July 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
📌 Create validation constraint for ComponentTreeStructure Needs work is in, can you rebase this? 🙏
- Assigned to utkarsh_33
- Issue was unassigned.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Doesn't need to be @Utkarsh_33 who works on this :)
- 🇺🇸United States cosmicdreams Minneapolis/St. Paul
It sounds like what is left for this issue is to get it to pass the tests.
- Assigned to wim leers
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
With ~1 month of changes, I think a rebase is necessary.
- Issue was unassigned.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Merged in upstream, looks like more tests than before are failing.
- First commit to issue fork.
- Assigned to deepakkm
- Status changed to Needs review
6 months ago 8:26am 9 September 2024 - Status changed to Needs work
6 months ago 8:35am 9 September 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
@deepakkm: Only two nits for you to address, then it's up to @tedbow to review :)
- Assigned to tedbow
- Status changed to Needs review
6 months ago 5:46pm 9 September 2024 - Assigned to deepakkm
- Status changed to Needs work
6 months ago 12:33am 10 September 2024 - Assigned to wim leers
- Status changed to Needs review
6 months ago 6:32am 10 September 2024 - Assigned to deepakkm
- Status changed to Needs work
6 months ago 10:32am 10 September 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
The code that was added is inappropriately expanding the API surface, and it's too open-ended. Please tighten it 🙏
- Assigned to wim leers
- Status changed to Needs review
6 months ago 1:33am 11 September 2024 - Issue was unassigned.
- Status changed to RTBC
6 months ago 1:16pm 11 September 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
I cannot approve this MR because I started this MR.
Up to you to decide whether this is ready to be merged, @tedbow :)
- 🇺🇸United States tedbow Ithaca, NY, USA
@wim leers thanks
I merged in 0.x. Will merge MR if tests pass
- Assigned to tedbow
- Issue was unassigned.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Needs Felix' sign-off for
Config management /tests/src/Kernel/ComponentTest.php
… but the changes there are trivial.
So: bypassing review and merging 🚢
-
wim leers →
committed e13eb45d on 0.x
Issue #3463188 by deepakkm, tedbow, wim leers: Support propless SDCs
-
wim leers →
committed e13eb45d on 0.x
- Status changed to Fixed
6 months ago 3:49pm 11 September 2024 Automatically closed - issue fixed for 2 weeks with no activity.