Support Testing Uncacheable Entities

Created on 3 February 2025, 6 days ago

Problem/Motivation

Unable to build a test on top of ResourceTestBase for a view uncacheable entity that does not allow anonymous users to view the label.

Steps to reproduce

Create an entity that has uncacheable view responses and does not allow anonymous users to view the label, i.e. set "$anonymousUsersCanViewLabels" property to FALSE. In this case the "$dynamic_cache_label_only" variable is it's default value leading to an error later on.

Proposed resolution

Only use the "$dynamic_cache_label_only" variable for checking later if it's not it's default value.

Remaining tasks

None

User interface changes

None

Introduced terminology

None

API changes

None

Data model changes

None

Release notes snippet

None

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component

jsonapi.module

Created by

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