XWiki Platform
  1. XWiki Platform
  2. XWIKI-14157

Display the default and inherited values in the Administration

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 9.2
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
      None
    • Difficulty:
      Hard
    • Similar issues:

      Description

      Wiki preferences often support inheritance. The most common chain of inheritance is:

      page < parent page < ... < sub-wiki < main wiki < xwiki.properties
      

      This means that a configuration property:

      • can be set explicitly or
      • can be left unset in order to inherit from its ancestors

      The issue is that at the moment, when looking at a configuration option that is not set:

      • you don't know what is the actual value (you see "---" for instance)
      • you don't know where that value comes from (where is it inherited from)

      The problem is visible most often on drop-downs (select HTML element) and text inputs:

      • for text inputs we could display the default/inherited value using the "placeholder" attribute
      • for drop-downs we need to replace the "---" option with something more meaningful.

        Issue Links

          Activity

          Hide
          Thomas Mortagne added a comment - - edited

          you don't know what is the actual value (you see "---" for instance)

          Actually the ConfigurationSource is taking care of that so you don't need to worry about that when you use the right API. See AbstractDocumentConfigurationSource#isEmpty(Object value).

          I guess the easiest to implement this would be something like the following:

          • add a "boolean followInheritance" in ConfigurationSource#getProperty methods
          • if ConfigurationSource#getProperty with false is null then call again ConfigurationSource#getProperty but with true to get the inherited value
          Show
          Thomas Mortagne added a comment - - edited you don't know what is the actual value (you see "---" for instance) Actually the ConfigurationSource is taking care of that so you don't need to worry about that when you use the right API. See AbstractDocumentConfigurationSource#isEmpty(Object value) . I guess the easiest to implement this would be something like the following: add a "boolean followInheritance" in ConfigurationSource#getProperty methods if ConfigurationSource#getProperty with false is null then call again ConfigurationSource#getProperty but with true to get the inherited value

            People

            • Assignee:
              Unassigned
              Reporter:
              Marius Dumitru Florea
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Date of First Response: