Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Configuration metadata of extended components #1917

Open
mrednic-1A opened this issue Jun 24, 2024 · 0 comments
Open

[Feature]: Configuration metadata of extended components #1917

mrednic-1A opened this issue Jun 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mrednic-1A
Copy link
Contributor

mrednic-1A commented Jun 24, 2024

Context

Use case:
Component (exposed) replacement in customization process.

Nowadays, from the customization repository a component can be replaced using the c11n mechanism.

The custom component can be created from scratch or it can extend a base component and add some modifications. If the base component is an exposed component (implementing ExposedComponent, Block, Page interfaces), then the custom component should be an exposed one too, therefor the metadata will be extracted for the custom component too.
But in the case when the custom component extends a base one, the metadata from the base one will be generated, but it could not be used by the CMS to generate visible effects on the UI, because the component was replaced with the custom one.
That's why we need to enhance the component metadata extractor to detect that a component extends another one, and to compute the configuration metadata from the base plus the custom config.

Proposal

As we already have an O3rComponent decorator, we could add a new property to this one in order to identify the base component at metadata extraction, and create the custom config computed from the base and custom config (if it's the case).

The use-case refers to component replacement but the resolution should apply to all custom components extending an exposed component.

@mrednic-1A mrednic-1A added the enhancement New feature or request label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant