Do not save invalid entities

Created on 11 February 2025, 3 months ago

Problem/Motivation

The code does not validate before saving the entity. This is a mistake because it could result in breaking the site, for example:

  • You could change an entity reference to an entity that is not valid
  • You could remove a required field - eg a target link of a redirect

Proposed resolution

Validate before save and if there are errors - log instead.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

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