- Issue created by @wim leers
- First commit to issue fork.
- ๐ฆ๐บAustralia acbramley
I would say this isn't so Novice, the tests are quite complicated. I had to:
1. Swap to standard profile
2. Modify cache tags in existing tests to match
3. Enable some new modules
4. Port over helper functionsLocally these tests are throwing a bunch of warnings but I'm testing out the ddev XB setup so it might be related to that.
- ๐ฆ๐บAustralia acbramley
Not too sure what's causing those unrelated test failures!
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Not too sure what's causing those unrelated test failures!
Hm โฆ me neither, but this seems like yet another case of https://www.drupal.org/project/gitlab_templates โ being wrong and running contrib module's test suites differently for non-maintainer-pushed commits than for maintainer-pushed commits ๐ฌ (I wish I was kidding!)
Also: you're right, I misjudged, this is not a trivial move. ๐ Thanks for removing the tag.
But โฆ this issue is novice-like in the sense that you were able to do this without deep XB knowledge! ๐ What do you think would be a more appropriate tag? ๐
- Assigned to wim leers
- Status changed to Needs review
2 months ago 4:50pm 19 June 2025 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Suggested API route:
experience_builder.api.info.candidate_dynamic_prop_sources: path: '/xb/api/v0/info/candidate_dynamic_prop_sources/{entity_data_definition}' methods: [GET] โฆ
So:
/xb/api/v0/info/candidate_dynamic_prop_sources/entity:node:article
etc. - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Removal happened to unblock ๐ Components don't load Active , this is now purely about adding an API
New title
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Perfect, thanks!
This will be a blocker for the Content Templates UI: ๐ฑ [META] 7. Content type templates โ aka "default layouts" โ clarify the tree+props data model Active .
- First commit to issue fork.
- ๐ช๐ธSpain isholgueras
Rebase done and tests moved fixed, but a
$this->drupalLogout()
from a previous tests is failing because Mink can't find "op" button.https://git.drupalcode.org/project/experience_builder/-/jobs/5801240#L976
After inspecting the HTML right there, the user is logged in and there is a link for logout.
<ul> <li> <a href="/user" data-drupal-link-system-path="user">My account</a> </li> <li> <a href="/user/logout?token=INyOF8qdzpnT1xzUapL9vdyU4YKpjP1WM6X-JZOG-VM" data-drupal-link-system-path="user/logout">Log out</a> </li> </ul>
I also added a
$this->drupalLogin($this->httpApiUser)
and it also fails. - ๐ช๐ธSpain isholgueras
isholgueras โ changed the visibility of the branch 3510896-move-propsourceendpointtest-into to hidden.
- ๐ช๐ธSpain isholgueras
isholgueras โ changed the visibility of the branch 3510896-move-propsourceendpointtest-into to hidden.
- ๐ช๐ธSpain isholgueras
isholgueras โ changed the visibility of the branch 0.x to hidden.
- ๐ช๐ธSpain isholgueras
After talking to @wim, I've realized that #10 ๐ Move `PropSourceEndpointTest` into new `XbConfigEntityHttpApiTest::testComponent()` Active is adding a new task, so it's not ready.
The current MR1379 is only moving the test
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
MR 1379 doesn't address the full issue scope, but I understand how that came to be.
That doesn't mean MR 1379 is wrong โ we still need it, but it's only the original side of the coin, since #10 the coin gained another sight (metaphor falling apart โ it's been a long day ๐ .
-
wim leers โ
committed cdb47323 on 1.x authored by
isholgueras โ
Issue #3510896 by isholgueras, wim leers, acbramley, larowlan: Add a new...
-
wim leers โ
committed cdb47323 on 1.x authored by
isholgueras โ
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Having worked on many of the pieces powering
FieldForComponentSuggester
and the historical creation ( ๐ HTTP API: update /xb-component/{component_id} to list possible prop sources for current entity context Fixed ) of the test we're refactoring away here, it seemed only reasonable that it was up to me to perform the git+d.o archeology work to bring clarity to the rationale behind what is being tested, and clean it up.It can be improved further, but it is now sufficiently clear and commented for others to be able to iterate on it further. Merged @isholgueras' MR with my refinements. ๐
Next up: what this issue was rescoped to in #10. I'll get an outline of an MR going.
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
wim leers โ changed the visibility of the branch 1.x to hidden.
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Pushed up a rough outline: https://git.drupalcode.org/issue/experience_builder-3510896/-/commit/bca....
We'll need to tackle ๐ Rename `FieldForComponentSuggester` to `StructuredDataSourceSuggester` Active and ๐ [PP-1] Refactor GeneratedFieldExplicitInputUxComponentSourceBase and FieldForComponentSuggester to need only SDC's ComponentMetadata, not SDC plugin instances Postponed too, but there's no need to get blocked on that โ it's better to get something rough going to unblock โจ Content templates, the boss battle: create a UI for editing templates Active :)
- Merge request !1391Resolve #3510896 "New http api for content template ui" โ (Merged) created by isholgueras
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
๐ Initial review posted :)
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
This needs input from โจ Content templates, the boss battle: create a UI for editing templates Active and especially ๐ Spike: UI for content templates Active , to determine what the ideal API response shape would be for the client side.
- ๐ซ๐ฎFinland lauriii Finland
Content Templates is still a priority for stable, but we're tracking it separately.
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Almost there: https://git.drupalcode.org/project/experience_builder/-/merge_requests/1... โ please confirm, @hooroomoo.
- ๐บ๐ธUnited States tedbow Ithaca, NY, USA
Changing parent to content template UI
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Perfect, I have everything I need now to finish this up :)
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
I wonโt have time to finish this MR today โ thereโs still a bunch of loose ends to clean up, but it works.
@hooroomoo, please test, and confirm that this is what you want/need! ๐ ๐
You'll get something like:
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Thanks to @hooroomoo's test of this together with their PoC, I can now land this with confidence ๐ฅณ
Out of scope:
- making these API responses cacheable โ if the need ever arises, we'll do that then
- code component support is out of scope โ we have had ๐ [PP-1] Refactor GeneratedFieldExplicitInputUxComponentSourceBase and FieldForComponentSuggester to need only SDC's ComponentMetadata, not SDC plugin instances Postponed for >6 months now to do exactly that
- fixing a shape matching bug that the test coverage I added unearthed: ๐ Shape matching of an optional SDC image prop fails to find optional field instances Active .
- while updating the OpenAPI spec, I noticed that for all 4xx responses, the generated docs say
{ "errors": [ {} ] }
is an example value. Which makes no sense, because it should be something like
{ "errors": [ "The 'bla bla' permission is required." ] }
But โฆ this is using the
ClientErrorResponse
already in HEAD, which clearly is wrong for many (not all, but many) routes ๐ It's somewhat right for validation errors for data sent in various API request bodies, but it's wrong for (most?) other cases.Created ๐ OpenAPI spec's `ClientErrorResponse` etc are incorrect for most API routes Active for this.
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
The very last obstacle is supremely silly:
FILE: tests/src/Functional/ApiUiContentTemplateControllersTest.php ------------------------------------------------------------------------------------------ FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------ 20 | ERROR | [x] Doc comment star missing (Drupal.Commenting.DocCommentStar.StarMissing)
โฆ but that all is there and it DOES comply! ๐
Just removing the comment, don't want this to be held up by that โ created supported request upstream: ๐ฌ False `Drupal.Commenting.DocCommentStar.StarMissing` report? Active .
-
wim leers โ
committed ccecb33b on 1.x authored by
isholgueras โ
Issue #3510896 by wim leers, isholgueras, acbramley, tedbow, larowlan,...
-
wim leers โ
committed ccecb33b on 1.x authored by
isholgueras โ