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

Fix hits and aggregations properties assignment in nuxeo-es-search

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.3.0
    • Component/s: Dataviz

      Description

      The hits and aggregations property are not set correctly in the _handleResponse function

        _handleResponse: function(request) {
                var response = request.response;
                this.aggregations = response.aggregations;
                this.hits = response.hits;
                this.fire('results', response);
                return response;
              }
      

      Direct assignment does not work because the properties are declared as read only (see https://www.polymer-project.org/1.0/docs/devguide/properties.html#read-only)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: