Searchlight UI - Allow aggregation results through the horizon API

Bug #1623101 reported by Travis Tripp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Searchlight
Fix Released
High
Travis Tripp

Bug Description

The Horizon REST API service is only letting the hits portion of the response come through. This is a problem for two reasons:

One, aggregations can't come through.
Two, It creates a difference between CORS requests to searchlight and horizon requests to searchlight.

openstack/searchlight-ui / searchlight_ui/api/rest/searchlight.py

Line 63:

        return searchlight_post(
            '/search',
            request,
            search_parameters
        ).json()['hits']

Should be:

       return searchlight_post(
            '/search',
            request,
            search_parameters
        ).json()

And then fix the response.

Changed in searchlight:
milestone: none → ocata-rc1
milestone: ocata-rc1 → newton-rc1
description: updated
tags: added: searchlight-ui
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to searchlight-ui (master)

Reviewed: https://review.openstack.org/369596
Committed: https://git.openstack.org/cgit/openstack/searchlight-ui/commit/?id=e493560a5713e0b7356aa7c5cc8edc466c25dc91
Submitter: Jenkins
Branch: master

commit e493560a5713e0b7356aa7c5cc8edc466c25dc91
Author: Travis Tripp <email address hidden>
Date: Wed Aug 31 23:40:13 2016 -0600

    Allow full searchlight response through Horizon

    The Horizon REST API service is only letting the hits
    portion of the response come through. This is a
    problem for two reasons:

    One, aggregations can't come through.
    Two, It creates a difference between CORS
    requests to searchlight and horizon requests to searchlight.

    Change-Id: I06575e421868a089be17d3e16c81980880e21fcd
    Closes-Bug: #1623101
    Closes-Bug: #1623146
    Partially-Closes-Bug: #1617327

Changed in searchlight:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/searchlight-ui 1.0.0.0rc1

This issue was fixed in the openstack/searchlight-ui 1.0.0.0rc1 release candidate.

Changed in searchlight:
importance: Undecided → High
assignee: nobody → Travis Tripp (travis-tripp)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.