Bug 1732754

Summary: Second selected query string should replace the existed one instead of directly appending the string at the end of previous one.
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: Management ConsoleAssignee: Andrew Pickering <anpicker>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: medium    
Version: 4.2.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-16 06:31:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description XiaochuanWang 2019-07-24 09:43:37 UTC
Description of problem:
Cluster admin goes to monitoring -> query-browser, select one query from "Insert Metrics from Cursor" dropdown , don't edit it and select another query from dropdown list. The query box will directly append the 2nd string at the end of the previous one.

Version-Release number of selected component (if applicable):
4.2.0-0.nightly-2019-07-24-000310

How reproducible:
Always

Steps to Reproduce:
1. Cluster admin goes to monitoring -> query-browser, select one query from "Insert Metrics from Cursor" dropdown -> click "Run Query"
2. Then select another query from the "Insert Metrics from Cursor" drop-down list


Actual results:
2. The 2nd string will be appended at the end of the existing query string, clicking `Run Queries` will give "No datapoint found"

Expected results:
2. Query box should replace the string by the 2nd one.

Additional info:

Comment 1 Andrew Pickering 2019-08-13 01:22:04 UTC
Should be fixed now.

Comment 3 XiaochuanWang 2019-08-16 07:32:44 UTC
Verified on 4.2.0-0.nightly-2019-08-15-205330
When the filter query text are selected from input box, it will be replaced to new query text after user select new query

Comment 4 errata-xmlrpc 2019-10-16 06:31:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2922