Tighten validation of `parent_uuid` and `slot` on XB fields to match the strictness of config

Created on 27 May 2025, 6 days ago

Overview

I wrote

Worse: the Recipes default content import functionality apparently did not report a validation error?! 😱

at πŸ“Œ Default content exports are invalid and hence are not correct after importing Active . Turns out that the problem is the validation logic in ComponentTreeStructureConstraintValidator, which apparently was not sufficiently tightly updated in πŸ“Œ [PP-1] Consider not storing the ComponentTreeStructure data type as a JSON blob Postponed .

Proposed resolution

  1. Add test coverage reproducing what @justafish reported.
  2. Tighten validation of ComponentTreeStructureConstraintValidator

User interface changes

None.

πŸ“Œ Task
Status

Active

Version

0.0

Component

Data model

Created by

πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
  • Regression

    It restores functionality that was present in earlier versions.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024