- Issue created by @larowlan
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Will continue this later.
The tricky bit is that:
- the stored explicit input (e.g. a JSON-encoded
StaticPropSource
for an SDC prop) is not the same as the resolved explicit input (e.g. the URL or integer or whatever that thatStaticPropSource
resolves to). validateComponentInput()
as implemented for SDC in HEAD is about validating the stored explicit input, not the resolved!
Fixed in https://git.drupalcode.org/project/experience_builder/-/merge_requests/5... β but we'll need to think this through more, because having two validation methods in each component source is going to be confusing. I'd like to end up with a single one.
I expect still lots of failures, because lots still needs to happen. But at least there's a start now.
- the stored explicit input (e.g. a JSON-encoded
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Managed to leave it in a clearer, better place. More tomorrow.
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Was on a call with @effulgentsia and discussed two points with him
- Remove \Drupal\experience_builder\Plugin\DataType\ComponentPropsValues::getPropSourceTypePrefixList as it should be internal to the SDC source plugin - I think we should hold off on this until we see how javascript components look. Wim, Dave and I already had a discussion about evaluated vs non-evaluated input and there may be a concept that evolves that isn't SDC specific. I'll open a separate issue as Alex agreed we should leave it for the time being. Removed it from the IS
- Should we separate 'clientModelToInput' and 'validateClientInput' so that the former doesn't do any validation at all, but the later is called immediately after. Alex agreed as this is consistent with how EntityForm works in core - I'll continue with that
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
WHAT A WAY TO START MY DAY! π π€ π₯³
I read all commits in order and found myself nodding the entire time! π
The incoherent unfinished bits I had locally were all finished in the same way by @larowlan.
Blissful start of this Thursday! π
I reviewed this very thoroughly and found a few minor problems, but most importantly was able to make
ValidComponentTreeConstraintValidator
trulyComponentSource
-agnostic! π₯³Ideal next issue: π Remove references to 'props' outside of SDC - use 'inputs' instead Active .
#10.2++ β but I think that can happen in a follow-up. Everything in here already is highly valuable and fixed several critical data integrity bugs! (It also makes that subsequent issue much smaller.) Tagging for just that bit.
-
wim leers β
committed 434e2a36 on 0.x
Issue #3500997 by wim leers, larowlan: Move SDC-specific validation in...
-
wim leers β
committed 434e2a36 on 0.x
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
(Merged given that @larowlan independently pushed this forward in the exact same direction I was going. No need to delay this crucial data integrity/validation/clean-up issue!)
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
@longwave posted 2 remarks minutes after merging β thankfully he opened π Decouple component UUID from clientModelToInput and validateComponentInput Active to address those excellent observations! π
Automatically closed - issue fixed for 2 weeks with no activity.