Details
-
Improvement
-
Resolution: Unresolved
-
Neutral
-
None
-
2.0
Description
According to Sasha:
definitions app shows only the things that were actually configured, we don’t unfortunately show the ‘effective’ configuration
I actually thought that the def.app. shows effective values, apparently that's not the case.
(But how can it figure out the proper values where decoration comes into place).
As a user I want to see effective values of definition items.
"Use case" default values
Default values defined in the Java definition class are not showed on the view of the definition app.
If a property is not defined in the corresponding YAML file, the property is omitted on the view of the definition app.
Example
Definition class FooBar (from a module definition class)
public class FooBar {
private List<String> colors;
private boolean colorsEnabled = true;
public boolean isColorsEnabled() {
return colorsEnabled;
}
public void setColorsEnabled(boolean colorsEnabled) {
this.colorsEnabled = colorsEnabled;
}
public List<String> getColors() {
return colors;
}
public void setColors(List<String> colors) {
this.colors = colors;
}
}
YAML:
fooBar: colors: [red, green, blue]
screenshot:
The property colorsEnabled, which has a default value, is omitted.
Source of the example
https://git.magnolia-cms.com/users/cmeier/repos/another-module
- Module class with the Foobar item
- YAML file
Checklists
Attachments
Issue Links
- is duplicated by
-
CFGUI-96 App does not reflect programatic changes
-
- Open
-