← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1564878] Re: Whitespace is not omitted in Horizon search query

 

Reviewed:  https://review.openstack.org/300446
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=b05d3cffb33f1df8b12bc3e83050c6402fc6b9ab
Submitter: Jenkins
Branch:    master

commit b05d3cffb33f1df8b12bc3e83050c6402fc6b9ab
Author: Paul Karikh <pkarikh@xxxxxxxxxxxx>
Date:   Fri Apr 1 15:20:37 2016 +0300

    Add strip() to filter string in instances
    
    admin/instances and project/instaces
    have server filter field.
    This field do not strip search string,
    so attempt to search "test " will return
    nothing. This patch fixes it.
    
    Change-Id: I6a56a95e8b9b46384c0ee9da4968abcbb0ecff70
    Closes-Bug: #1564878


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1564878

Title:
  Whitespace is not omitted in Horizon search query

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  When searching for Instances on Horizon, the query returns zero
  results if there is a space at the beginning or the end.

  Steps to reproduce:
  1. Create instance named "test"
  2. Go to Project->Compute->Instances or Admin->System Panel->Instances
  3. Search for "test"
  4. Search for "test " (with space at the end)
  5. Search for " test" (with space at the beginning)

  Actual Results:
  -Searching for "test" will successfully display the desired instance.
  -Searching for "test " yields zero results.
  -Searching for " test" yields zero results.

  Expected Results:
  It would be expected for Horizon to filter out whitespace before and after a search query, especially since whitespace is filtered before and after the name field upon instance creation.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1564878/+subscriptions


References