Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 598625 - suggestion selection fails when performing mid-token expression replacement
suggestion selection fails when performing mid-token expression replacement
Product: RHQ Project
Classification: Other
Component: Core UI (Show other bugs)
All Linux
low Severity medium (vote)
: ---
: ---
Assigned To: Joseph Marques
Sunil Kondkar
Depends On:
  Show dependency treegraph
Reported: 2010-06-01 14:19 EDT by Joseph Marques
Modified: 2010-08-12 12:50 EDT (History)
1 user (show)

See Also:
Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-08-12 12:50:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joseph Marques 2010-06-01 14:19:51 EDT
Description of problem:

A search expression is made up of several search tokens.  Frequently, a user will be asking for completions with the cursor naturally positioned at the end of a token.  However, sometimes a user will reposition the cursor in the middle of a token and ask for suggestions from that point on.  If the user selects one of the suggestions, it should replace the entire token properly, not just the part before the cursor.

How reproducible:

Every time.

Steps to Reproduce:
1. Enter "cod" into the SearchBar for resources
2. Suggestion should be "Code Cache"
3. Use the mouse to position the cursor between 'o' and 'd'
4. You'll see suggestions like configuration, connection, agent plugin container, etc etc
5. Select "connection["
Actual results:

The expression is replaced as "connection[d"

Expected results:

The expression should be replaced as "connection["

Additional info:
Comment 1 Joseph Marques 2010-06-01 14:36:30 EDT
commit fc9d0ea7d906573a6529c57dceb26c950fe5cbbd
Author: Joseph Marques <joseph@redhat.com>
Date:   Tue Jun 1 14:30:27 2010 -0400

BZ-598625: properly replace entire current search token with provided suggestion
Comment 2 Corey Welton 2010-06-07 08:34:53 EDT
Grabbing this bz since I was actually making use of search functionality this AM.  That said, we should still have a test case for this if we don't already -- i.e., it should exist in a test run.

QA Verified - when relocating cursor to middle of string, the suggestion appears correctly and when selected, the appropriate information is chosen for search box.
Comment 3 Corey Welton 2010-08-12 12:50:07 EDT
Mass-closure of verified bugs against JON.

Note You need to log in before you can comment on or make changes to this bug.