Some field storage column settings should be conditional

Created on 5 May 2025, 4 days ago

Problem/Motivation

Some settings like max_length for example are not applicable and can trigger validation restrictions when they shouldn't. As in the case of a URI or Link field type, those max_lengths are hardcoded and shouldn't be validated against the default.

Additionally, some of the schema types for custom_field.column are incorrect.

Steps to reproduce

Add a URI or Link field in storage settings and notice that the max_length of those types is not accounted for and assumes a limit of default 255 which can trigger a validation error that can't be fixed in the UI.

Proposed resolution

  • Make storage settings fields conditional based on data type and modify the getCustomFieldItems() method to account for those settings conditionally.
  • Update schema for custom_field.column to correct types.
  • Update any api helpers to account for NULL for those gets.
πŸ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States apmsooner

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