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

Fix nuxeo-aggregate-data-behavior losing 0 values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.9
    • Component/s: Dataviz

      Description

      Following ELEMENTS-1058, zero values in aggregates are lost and replaced by undefined

      https://github.com/nuxeo/nuxeo-elements/blob/88f2836d1d10db1939875c245d030970168a98ec/dataviz/nuxeo-aggregate-data-behavior.js#L366

      bucket.metrics.value || bucket.metrics.values 
      

      returns values if value is 0 because 0 is equal to false

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mvachette Michaël Vachette
                Reporter:
                mvachette Michaël Vachette
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: