Don't save value if it would be equal to the rendered output

Created on 5 April 2023, over 1 year ago
Updated 20 April 2023, over 1 year ago

Problem/Motivation

Normally when data is imported it assigns values to the field record and then saves the record. The problem is that during the export process the tokens are processed, so e.g. on a node with the title "Mangoes are best" the value "[node:title]" is turned into "Mangoes are best"; then when the spreadsheet is imported again it hardcodes the "Mangoes are best" value when it could have left the default.

Proposed resolution

During the import process:
* Generate the output for the meta tags.
* Compare the existing generated value vs the imported value.
* Only assign the values if something changed.
* Only save the field if something changed.

Remaining tasks

Work out the steps.
Test coverage.

User interface changes

n/a

API changes

TBD

Data model changes

n/a

✨ Feature request
Status

Fixed

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024