Repository navigation
Conversation
This was referenced Oct 30, 2026
sneridagh
force-pushed
the
feat/controlpanels-restapi-driver
branch
from
October 30, 2026 19:24
b0e9797 to
6311fd3
Compare
sneridagh
force-pushed
the
feat/controlpanels-restapi-driver
branch
from
October 30, 2026 20:12
6311fd3 to
894a790
Compare
sneridagh
force-pushed
the
feat/controlpanels-restapi-driver
branch
from
October 31, 2026 01:38
894a790 to
6167d32
Compare
sneridagh
force-pushed
the
feat/controlpanels-restapi-driver
branch
from
November 1, 2026 02:05
6167d32 to
95daf29
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #269, for the Volto port (phase 9). Stacked on #350.
The plone.restapi side of the content types driver moves from
@plone/cmsuiinto@plone/controlpanels, so Aurora and Volto share it. Aurora runs it on the server, and Volto will run it in the browser.@plone/controlpanelscreateRestApiDriver(request, backend): the content types driver for plone.restapi. It uses@content-types,@behaviorsand@workflows(Endpoints for per-type content settings, behavior order and workflow assignment plone.restapi#2061) whenbackendsays the site has them, and@controlpanels/dexterity-typesotherwise, with those capabilities off. Workflow changes finish while the request waits, so the driver returns jobs that are already done.detectRestApi(request): which of those services the backend has. A 404 means it's missing. An unclear answer, such as a 401, is marked so the app doesn't keep it.RestApiRequest: each app passes its own function to call plone.restapi, with its credentials. It resolves with the response's body, and rejects with the status and the body, as@plone/clientand Volto'sApido.src/content-types/restapi/:dexterityTypes.ts(washelpers/contentTypes.ts) andcontentTypesService.ts(washelpers/contentTypesApi.ts), with their tests.errorMessagealso readsresponse.body.Aurora (
@plone/cmsui)helpers/contentTypesBackend.ts:restApiRequest(cli)adapts@plone/client, andcontentTypesDriver(cli)builds the driver for the backend. What a backend has is still kept for a minute.routes/api/contentTypes.tsxis a thin layer over the driver: each route calls one of its methods. It adds@workflow-assignments, andPOST @workflow-changes(with?previewfor the dry run).auroraDriver.tsis a thin client for those routes.No behavior changes.
Checks
@plone/controlpanelshas 121, including the new driver's tests;@plone/cmsuihas 434.check:tsand lint pass.content-types.test.tson both backends:issue-2061-workflows(Add @workflows and changing a type's workflow (#2061 step 4) plone.restapi#2081): 22 passed, 2 skipped. "reorders custom fields with the keyboard" failed once; its cause is fixed in Add the Fields tab to the content type page #313.Api(the coming plone/volto PR).See #269 for how to review and merge the stack.