Repository navigation
2.0.0-alpha.18
Pre-release
Pre-release
·
29 commits
to main
since this release
Breaking
RouteGeneratortakes aValidatorInterface(#433)- A page's
uiComponentis stored as the full component name,CwaPage<Name>: a POST or PATCH sending the short name (PrimaryPageTemplate, as the admin's page modals do) stores and returnsCwaPagePrimaryPageTemplate, so pages written through the API and throughCwaFixtureBuilderagree andgenerate-fixturesreloads them unchanged. Layouts are unchanged. Upgrade step: runsilverback:api-components:prefix-page-ui-componentsonce to prefix pages already stored with the short name; it is safe to run again (#431)
Fixed
POST /_/routes/generateis a 422 with apathviolation, and creates nothing, when the parent's path and the title slug together are longer than 255 characters;RouteGenerator::create()throws the sameValidationExceptionfor fixtures.PATCH /_/routes/{id}withcascadeChildPathschecks every descendant's new path before writing anything, so a rename that would push one over 255 characters is a 422 naming that descendant instead of a 500 after the route and part of the tree were already moved. A cascade to a path under the route's own path no longer recurses without end when an unrouted child page loops back to it (#433)- A value longer than its
VARCHAR(255)column (a page'stitleormetaDescription, anyreference,uiComponent, routepath/name, component positionpageDataProperty/pageDataClass, site configkey, formformType, collectionresourceIri, userusername/emailAddress/newEmailAddress) is a 422 with a field violation instead of a 500 from MySQL or PostgreSQL (#430) - A
PUTto a user resource updates only the fields it sends. API Platform's defaultstandard_put(on 4.x and 5.x) built a new user from the body, so aPUTreturned 200 after blanking the password hash and resetting roles,enabledand email verification, or failed with 422/500 when it sent no email address. The bundle setsstandard_put: falseon everyPutof anAbstractUserresource (#429) CwaFixtureBuildercreates the groups of components declared inside anested()closure, with their positions, so a scaffold generated from a site with nested pages no longer reloads those pages emptied below their first component (#428)