Faking "_cart_api" route requirement causes issues

Created on 14 January 2025, 8 days ago

Problem/Motivation

We are missing some fields (like langcode and status) in JSON:API response for some entities. A debug shown that it happens because Commerce Cart API module denies that access to pages with the "_cart_api" requirement, and if AddToCart formatter fires during a JSON:API response and adds that requirement to the route, all entities normalized after it will not have those fields.

Proposed resolution

Restore the route requirements after the formatter worked.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇾Cyprus alex.bukach

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024