Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19036

Empty operator in live data cannot be removed for list properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 13.5-rc-1, 13.4.1
    • Live Data
    • Unknown

    Description

      The empty operator is automatically added to list properties that have a select filter in the live data. Unfortunately, there is no possibility to remove it. This is because the operators in the configuration are an array of objects with an "id" property (like "operators": [\{"id": "empty"}])  and these arrays are merged with a default configuration that contains the empty operator. Therefore, regardless if the "empty"-operator is included or not, it is added from the default configuration. The use case is that there are cases where it is impossible that a value is empty, e.g., because it is the last user that wrote a page or because it is a file size.

      A first step would be an option to manually disable the "empty" value. A possibility would be to add a property to the operator to explicitly disable it, like "operators": [\{"id": "empty", "disabled": true}]). Even better would be to detect common properties where it should be omitted.

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: