Closed (fixed)
Project:
Experience Builder
Component:
Shape matching
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2024 at 12:05 UTC
Updated:
25 Sep 2024 at 22:29 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
wim leersComment #3
wim leersComment #4
wim leers#3469421: `{type: string, format: uri}` disallows image URLs containing spaces, `uri` data type stores + returns invalid URIs! is in.
Comment #5
tedbowworking on this
Comment #7
tedbow@Wim Leers regarding our discussion early. I did retest and to get the image to show up correctly for manual testing all I have to do to is https://git.drupalcode.org/project/experience_builder/-/merge_requests/2...
image-uriin the schema.jsonfile to
"format": "url",If I don't do that I get the error
The renaming of
image-uritoimage-urlis not necessary.Obviously this in not correct fix but just wanted to mention because thought
"format": "url",shouldn't make it work and I thought maybe I had changed something else so I double checked and can get it to work with just the 2 changesComment #8
wim leers#7.2: you really shouldn't need to change
format: uritoformat: url. That's not a real format, per https://json-schema.org/understanding-json-schema/reference/string#built.... I bet it's only superficially working because\JsonSchema\Constraints\FormatConstraint::check()handles non-official formats by … just accepting any value as valid. 😅What happens if you don't change
format? Do you get a validation error from the SDC subsystem? If so, then that would match my above hypothesis. If not: what exactly is not working in that case?What's definitely still missing is the update of
to
in all test expectations.
Comment #9
wim leersI fixed 3 of the 8 failures for you — these are the ones under the https://git.drupalcode.org/project/experience_builder/-/blob/6efdbece061... umbrella.
The remaining failures fall under the https://git.drupalcode.org/project/experience_builder/-/blob/6efdbece061... umbrella.
Comment #11
wim leersACK — unfortunate indeed.
Comment #12
wim leers@tedbow FYI the work I did on #3471171: Allow components to use textarea in favor of input might help you grok the different areas at play better. The commits tell the story/sequence :)
Comment #13
wim leersGreat catch/call about
urivsuri-reference, @tedbow!P.S.: #3454173: Media Library integration (includes introducing a new main content renderer/`_wrapper_format`) landed earlier today and introduces a second place where this fix is sorely needed 😄
Comment #15
tedbowAssigning to @Wim Leers for review since everything except the E2E test are passing.
I think the previous test interactions might have only worked because the images were not showing up
for instance tests/src/Cypress/cypress/e2e/add-section.cy.js
What I am seeing locally in 0.x is that clicking on the .column-one element would open up the Column form. but in the MR version the image takes up the more of the column with so it then opens up the image element form.
Not sure how to change the test to click on .column-one but not the image or other element.
So leaving needs work for that. It would probably be better if someone with more Cypress experience worked on that because I only have a little experience with this. I would be interested to work on this problem but since this is the #1 issue for #3454094: Milestone 0.1.0: Experience Builder Demo now we should probably get it down as quickly as possible.
Comment #17
jessebaker commented@tedbow I have fixed 2/3 of the failing tests. The 3rd test seems to be failing on something specific to this branch so I believe it’s a legitimate bug.
After choosing an image from the Media Library there is an error when making a request to
/api/preview/node/1as follows:
Comment #18
wim leersReproduced the last failure:
Investigating 🕵️
Comment #19
wim leersSo close! 🤩
Great work here 😊
Posted a ~dozen review threads/suggestions on the MR, and an overall assessment: https://git.drupalcode.org/project/experience_builder/-/merge_requests/2...
Comment #20
wim leersComment #21
tedbowComment #22
wim leersDocs updated. Nits addressed. GIF added to issue summary.
Let's ship this! 🚀
Thanks, @tedbow!
Comment #24
wim leersComment #25
kristen polThanks! Confirming this is working for me with fresh install and I can swap out images with no problems... this will help a lot!
Comment #26
wim leers