[Uptime] Infinite requests for index pattern #54151
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Uptime - DEPRECATED
Synthetics & RUM sub-team of Application Observability
test-plan
test-plan-ok
issue has passed test plan
v7.6.0
Kibana version:
master
Elasticsearch version:
yarn es snapshot
Server OS version:
macOS
Browser version:
Chrome 79.*
Browser OS version:
macOS
Original install method (e.g. download page, yum, from source, etc.):
from source
Describe the bug:
There's an issue where the Uptime Overview page makes an infinite series of requests to the index pattern API endpoint.
Steps to reproduce:
Expected behavior:
There would be a single request for the index pattern.
Screenshots (if relevant):
Errors in browser console (if relevant):
N/A
Provide logs and/or server output (if relevant):
N/A
Any additional context:
This is due to the inclusion of a setter from
useState
as a dependency of theuseEffect
used by ouruseIndexPattern
hook. As a temporary fix, we should ignore the eslint rule for this line, and remove that function as a dependency of the hook. Longer term, we should migrate away from individual components being responsible to fetch this.The text was updated successfully, but these errors were encountered: