Bug 1875345 - Query Browser: JS error in DevTools console when metric label key is `id`
Summary: Query Browser: JS error in DevTools console when metric label key is `id`
Keywords:
Status: VERIFIED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.6
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.6.0
Assignee: Andrew Pickering
QA Contact: hongyan li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-03 11:21 UTC by Andrew Pickering
Modified: 2020-09-10 04:30 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Github openshift console pull 6509 None closed Bug 1875345: Query Browser: Fix JS error when label key is `id` 2020-09-15 13:53:30 UTC

Description Andrew Pickering 2020-09-03 11:21:17 UTC
JS error message and relevant part of the stack trace is below.

Warning: Encountered two children with the same key, `[object Object]-row`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
    in tbody (created by BodyWrapper)
    in BodyWrapper (created by BaseBody)
    in BaseBody (created by Context.Consumer)
    in Body (created by ContextBody)
    in ContextBody (created by Context.Consumer)
    in TableBody (created by QueryTable_)
    in table (created by Provider)
    in Provider (created by Table)
    in Table (created by QueryTable_)
    in div (created by QueryTable_)
    in QueryTable_ (created by ConnectFunction)
    in ConnectFunction (created by Query_)
    in div (created by Query_)
    in Query_ (created by ConnectFunction)
    in ConnectFunction (created by QueriesList_)
    in QueriesList_ (created by ConnectFunction)
    in ConnectFunction (created by QueryBrowserPage_)
    in div (created by QueryBrowserPage_)
    in div (created by QueryBrowserPage_)
    in div (created by QueryBrowserPage_)
    in QueryBrowserPage_ (created by ConnectFunction)
    in ConnectFunction
    in ErrorBoundary

Comment 4 hongyan li 2020-09-10 04:30:43 UTC
Test with payload 4.6.0-0.nightly-2020-09-09-173545
From dev console, query metrics container_memory_failures_total and container_fs_reads_bytes_total which has id label, data display well, no js error.


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