This initial "bug" report is five years too late. It is now a major feature request.

Config collections are an undocumented subsystem that was introduced after this module was written. It would be ideal if we used them, as they should allow for full schema support. Schema validation is a nicety that only matters to programmers, so far as I can tell, so it is not an essential feature.

Problems that need to be overcome in order to support this initiative are:

  1. The ability to discover what config has been overridden and stored.
  2. The ability to know which elements of a config object are being overridden, since we support partial overrides.
  3. The ability to reliably discover configuration objects and their related forms without using a config_translation.yml style hack.
  4. The ability to integrate existing or replacement functionality for a Domain Config UI as shown in https://github.com/agentrickard/domain/pull/434
  5. An upgrade path for existing users.
  6. Working tests

I will not be working on this without dedicated, paid support, but I am happy to review code. Pull requests are preferred for work of this complexity.

Original post:

Using config_inspector module to validate config schemas we get "No schema" for every domain config override.
According to Drupal's documentation it is recommended to have schemas for configuration objects, see https://www.drupal.org/docs/8/api/configuration-api/configuration-schema...

Issue fork domain-3060758

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

piggito created an issue. See original summary.

piggito’s picture

Status: Active » Needs review
StatusFileSize
new1.85 KB

The attached patch fixes schema detection for "domain.config.." but I couldn't fix it for the case when we add language "domain.confib...".
Language config override gets tricky cause languages are also config objects which depend in typed config processing so we don't have access to language manager at this point.
IMO we should be using config collection for overrides as core does but mb I'm missing something so I would like maintainer's opinion on this.

agentrickard’s picture

Category: Bug report » Feature request
Status: Needs review » Needs work

I am _not_ rewriting the config loader. This is not a bug.

Config collections are entirely undocumented, so please feel free to rewrite the entire system as a patch, so long as it accounts for the work in https://github.com/agentrickard/domain/pull/434

This is not a bug, it is bad API design from core -- and even worse support for an issue I raised in 2014.

agentrickard’s picture

I do know that @andypost was working on this at one time.

agentrickard’s picture

Title: No config schema for domain config overrides » Investigate using config collections
Issue summary: View changes
mably’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
Component: - Domain Conf » Code

We should keep this on our todo list.

Could be for a 3.x release.

mably’s picture

Status: Needs work » Needs review

All tests are green. Everything seems to work fine. Please review.

Any feedback welcome.

Note that we are now using the default Drupal Configuration Translation mechanism, so only the translatable fields are now available for translation when using the Drupal UI.

No migration path is currently provided.

mably’s picture

.

  • mably committed 93f30d19 on 3.x
    Issue #3060758 by mably: Investigate using config collections
    
mably’s picture

Version: 2.0.x-dev » 3.x-dev
Status: Needs review » Fixed

Released in 3.0.0-alpha1.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.