[CFGUI-89] As a user I want to see effective values of definition items Created: 24/May/19  Updated: 25/Mar/22

Status: Open
Project: Definitions App
Component/s: None
Affects Version/s: 2.0
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Christoph Meier Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File def-app_no-default-value.png    
Issue Links:
duplicate
is duplicated by CFGUI-96 App does not reflect programatic changes Open
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 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



 Comments   
Comment by Christopher Zimmermann [ 27/May/19 ]

Definitions app should always show the "effective" or active configuration.

 

https://documentation.magnolia-cms.com/display/DOCS60/Definitions+app

"The app displays active definitions from all sources - JCR and YAML - and origins - classpath, JCR and file system."

Comment by Christopher Zimmermann [ 25/Mar/22 ]

Is the problem here specifically that the default value is not shown?

Generated at Mon Feb 12 00:44:55 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.