[ACA-1619] automatically show content metadata (#1104)

* [ACA-1619] overwrite the app.config metadata settings only of the 'content-metadata-presets' is non-empty

* [ACA-1619] app config to show automatically all metadata aspects

- not extendable version

* [ACA-1619] app extension to show automatically all metadata aspects

- extendable version
- the app.config setting is overwritten by the one with ids from app.extensions
- could remove completely the content metadata setting from app.json

* [ACA-1619] allow 'disabled' property on content metadata configuration

* [ACA-1619] test content-metadata plugin extension

 - allow 'disabled' property on content metadata configuration

* [ACA-1619] remove test reference to metadata plugin

* [ACA-1619] backwards compatibility for metadata plugin extensions

- add back initial structure (& ids) of content-metadata "custom" preset
- revert change to sample metadata extension plugin

* [ACA-1619] forgotten change

* [ACA-1619] tests
This commit is contained in:
Suzana Dirla
2019-05-17 12:34:21 +03:00
committed by Denys Vuika
parent b4e6b43787
commit 5ffdf75f52
6 changed files with 104 additions and 51 deletions

View File

@@ -307,6 +307,10 @@ export class AppExtensionService implements RuleContext {
config,
'features.content-metadata-presets'
);
if (!elements.length) {
return null;
}
let presets = {};
presets = this.filterDisabled(mergeObjects(presets, ...elements));