entity_reference_shs field formatter is missing a schema

Created on 14 February 2019, about 6 years ago
Updated 4 April 2024, about 1 year ago

Hi,

I have been using shs module (alpha4) as a dependency of my custom module and got errors when writing/runing tests.

Description

The field formatter is missing a schema which causes issues when running tests. The formatter settings is also being saved with incorrect data type (its saving as integer and it should be boolean).

Tested with Drupal 8.6.7 and Drupal 8.6.9.

How to reproduce

1. Create a custom module with content entity that use entity_reference_shs as a field formatter for one of its fields.
2. Create a view that displays the field which uses entity_reference_shs formatter.
3. Write Functional tests for the module and run them.
4. Running tests will fail with similar error:

Schema errors for views.view.viewid with the following errors: views.view.viewid:display.default.display_options.fields.country_term_id.settings.link missing schema

This is my case but I'm sure it might also cause other configuration related issues.

Attached is the patch which fixes it for me, the tests are passing and the config is being saved as boolean.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024