Record new data & originalData (whenever avail)

Created on 10 October 2023, 9 months ago
Updated 11 October 2023, 9 months ago

Problem/Motivation

We can't really tell what changes were being made to the configuration

Proposed resolution

1. Add a new column called `OriginalData` which will be the same as data and will be used to store the original data configuration
2. Include $config->getOriginal() function to get the original values before the change (if any, otherwise empty/null)
3. Store them to the db table
4. Possibly use them as a diff on the request to create a viewing UI ( https://www.drupal.org/project/config_log/issues/3045456 📌 Create views integration for config_log table Fixed )

I'm attaching a small patch that takes care of this.

Please note: This patch applies to the 3.0.x branch and does not take care of any upgrades (via upgrade hooks)

Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom VangelisP Fife, Scotland

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

Comments & Activities

Production build 0.69.0 2024