Problem/Motivation

The JSON:API throws an AssertionError exception when trying to load a user with multiple profiles. This is due to the computed field "$profile_type_id . _profiles" not including a cardinality to the BaseFieldDefinition.

Steps to reproduce

Load a user with multiple profiles through the JSON:API.

Proposed resolution

Add cardinality to the BaseFieldDefinition.

Remaining tasks

See merge request.

Issue fork profile-3247309

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alexandersluiter created an issue. See original summary.

mglaman’s picture

Status: Active » Needs review
mglaman’s picture

👏 Great find! I plan on merging once tests are green.

mglaman’s picture

Status: Needs review » Fixed

Tests are green! Merged

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.