Enable option to suppress pattern schema warnings per environment

Created on 26 August 2024, 5 months ago

Problem/Motivation

When using patterns on a site over time and continually updating them, the content contained in a given block may no longer align with the current schema. When this happens, Patternkit encounters unexpected values during traversal of the schema content. This is usually indicative that manual review is needed for the content to get it updated, so a warning is logged in this case to highlight the issue. In some environments, however, repeated logging of these warnings may not be desired and may overwhelm logs. To address this, adding the option to disable this logging on a given environment may be helpful.

Steps to reproduce

Proposed resolution

  • Add a new advanced setting to disable schema warnings from being logged
  • Save this configuration to state instead of config to support per-environment configuration

Remaining tasks

User interface changes

  • New advanced setting in Patternkit settings: Unknown schema logging enabled

API changes

None

Data model changes

  • New state value: patternkit.unknown_schema_logging_enabled
✨ Feature request
Status

Active

Version

9.1

Component

Module Core

Created by

πŸ‡ΊπŸ‡ΈUnited States slucero Arkansas

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