Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-915

Terms aggregates labels are not evaluated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 2.2.0, 2.4.0, 3.0.0
    • Fix Version/s: None
    • Component/s: Viewers
    • Tags:
    • Backlog priority:
      400

      Description

      For example:

      1. if one defines a custom type names author in Studio (see authorDoc.png)
      2. then a terms aggregate on the primaryType (see primaryTypeAggregate.png)
      3. no label is shown in the results (see noLabel.png)

      The network trace in Google Inspector shows the following results:

            "buckets": [
              {
                "key": "Author",
                "fetchedKey": "Author",
                "docCount": 3
              },
              {
                "key": "File",
                "fetchedKey": "File",
                "docCount": 1
              }
            ],
            "extendedBuckets": [
              {
                "key": "Author",
                "fetchedKey": "Author",
                "docCount": 3
              },
              {
                "key": "File",
                "fetchedKey": "File",
                "docCount": 1
              }
            ]
      

      but there is no i18n evaluation in the nuxeo-checkbox-aggregation element:
      https://github.com/nuxeo/nuxeo-ui-elements/blob/maintenance-2.2.x/nuxeo-aggregation/nuxeo-checkbox-aggregation.html#L53
      whereas there is one for the empty result message:
      https://github.com/nuxeo/nuxeo-ui-elements/blob/maintenance-2.2.x/nuxeo-aggregation/nuxeo-checkbox-aggregation.html#L57

      Expected behavior: there should be an i18n evaluation. This would allow to add an entry like this:

      "Author": "my nice author label"
      

      in the messages.json file
      Workaround: none since the element is vulkanized and thus cannot be overriden

        Attachments

        1. primaryTypeAggregate.png
          primaryTypeAggregate.png
          134 kB
        2. noLabel.png
          noLabel.png
          190 kB
        3. authorDoc.png
          authorDoc.png
          158 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 minutes
                  5m