Uploaded image for project: 'Definitions App'
  1. Definitions App
  2. CFGUI-89

As a user I want to see effective values of definition items

    XMLWordPrintable

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

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                cmeier Christoph Meier
                Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Task DoD