Cause: Issue with typing custom query in promQl editor in metrics tab as Redux store was getting updated on each keypress and component as well was relying on it being a connected component
Consequence: An issue with typing custom query in promQl editor in metrics tab i.e if you start editing in between existing query cursor moves to the line end.
Fix: Made use of hook useSelector to bring redux into the same render function and avoid using a HOC
Result: Typing in custom query in promQl editor in metrics tab works as expected
DescriptionJaivardhan Kumar
2020-02-25 04:12:13 UTC
+++ This bug was initially created as a clone of Bug #1806114 +++
Description of problem: Issue with typing custom query in promQl editor in metrics tab of devConsole monitoring
Version-Release number of selected component (if applicable):4.4
How reproducible: Always
Steps to Reproduce:
1. Go to DevConsole -> Monitoring -> metrics tab
2. Select CustomQuery
3. Type some Query and try editing it
Actual results: User should be able to edit queries with ease
Expected results: if the user starts editing in between the existing query cursor moves to the line end.
Additional info:
Comment 3spathak@redhat.com
2020-02-27 10:37:59 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-2020:0581