Store exported entities in YAML format instead of JSON to better readability and diffs

Created on 7 February 2025, about 1 month ago

Problem/Motivation

The module works great, but it exports the entity content into JSON format, which is not well-readable, especially multiline strings with HTML code.

Try to imagine that you have 3 large paragraphs of text in the node body, and only one word is changed in the new version - how easy to see what exactly is changed?

So, a much more convenient way to store the exported data can be YAML, where we can see multiline strings just as regular strings, without escaped quotes and \n symbols.

And in the example above we will easily see the changed work as a diff change in one short string, instead of the whole HTML as a single long line.

Steps to reproduce

Proposed resolution

Add a setting to choose the export format and add YAML there.

Drupal already provides API to export entities as YAML, so from the technical side there should be no hard problems, I believe.

So, what do you think about this idea?

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.1

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

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

Comments & Activities

Production build 0.71.5 2024