Remove empty arrays on removing config patch

Created on 17 September 2025, about 1 month ago

This is a follow-up to 🐛 Config split patches for views do not remove handlers Needs work as I couldn't get a new git branch/MR working there.

This issue specifically focus on empty array keys left in config after all child elements are removed.

The main issue is mentioned in a code comment:
// @todo find a better way to know which elements are required.
they might be required.

The approach this MR takes, is to only remove these empty arrays, when they are all that is left to the parent element.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany christianadamski Berlin, Germany

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024