Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294415

Ignore entities that are not either ContentEntityTypeInterface or ConfigEntityTypeInterface when running jsonapi tests.

$
0
0

Problem/Motivation

jsonapi modules assumes all core entities implement either ContentEntityTypeInterface or ConfigEntityTypeInterface. This is correct at the time of writing this. but #2401463: Make dblog entities introduces an entity type that implements directly EntityTypeInterface and makes some jsonapi tests fail. Even if when this entity is marked as @internal and no support for jsonapi is offered.

There is another issue to actually give support to any type of entity types: #3042467: Support entities that are neither content nor config entities but this is a feature request and can take some time to be properly coded. In the meantime I think this qualifies as a bug which blocks other issues to be developed.

Steps to reproduce

Check any of the tests from #2401463: Make dblog entities before the temporal hack was introduced in https://git.drupalcode.org/project/drupal/-/merge_requests/1159/diffs?co...

Example: https://www.drupal.org/pift-ci-job/2180203

Proposed resolution

Until #3042467: Support entities that are neither content nor config entities is properly implemented, ignore entities that are not either ContentEntityTypeInterface or ConfigEntityTypeInterface when running jsonapi tests.


Viewing all articles
Browse latest Browse all 294415

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>