Remove "weight" from default settings in LeafletSettingsElementsTrait::getDefaultSettings

Created on 20 August 2024, 8 months ago
Updated 13 September 2024, 7 months ago

Problem/Motivation

When running automated tests for content types that include Leaflet displays, I consistently get schema validation errors like the following:
Schema errors for core.entity_view_display.node.location.default with the following errors: core.entity_view_display.node.location.default:content.field_geofield.settings.weight missing schema

I tried ensuring that there was no content.field_geofield.settings.weight key set in my configuration, but the error persists.

I noticed that a default settings key of weight is set to null in LeafletSettingsElementsTrait::getDefaultSettings. There isn't a corresponding value in the schema for this module, hence the errors.

Proposed resolution

This could be resolved by adding a schema value, but in using the formatter I don't see a weight field (nor do I know how it would be useful), so I propose that we remove this from the default values.

🐛 Bug report
Status

Fixed

Version

10.2

Component

Code

Created by

🇨🇦Canada mandclu

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