Use YAML instead JSON for configuration event log

Created on 9 March 2023, over 1 year ago

Problem/Motivation

Currently, the changes to a configuration is logged in the JSON format and there are some HTML markup are stored in the database.

It is difficult to read and cost much more database space, compare to YAML format.

Steps to reproduce

  • Install event_log_track_config module.
  • Change the site name to 'My Drupal 10 test site.'

The raw data of the description field of event_log_track table in the database is:

'<em class="placeholder">{&quot;new&quot;:{&quot;name&quot;:&quot;My Drupal 10 test site.&quot;},&quot;old&quot;:{&quot;name&quot;:&quot;Local D10&quot;}}</em>'

Proposed resolution

Use the YAML format instead of JSON format.

Then the raw data in the database will be:
new:
name: 'My Drupal 10 test site.'
old:
name: 'Local D10'

In the overview page, the description is more readable.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ“Œ Task
Status

Fixed

Version

3.1

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia mingsong πŸ‡¦πŸ‡Ί

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

Comments & Activities

Production build 0.71.5 2024