parseablehq / console

Frontend Client for Parseable. Parseable is a cloud native log storage and management for Kubernetes, containerised workloads
https://parseable.com
GNU Affero General Public License v3.0
25 stars 35 forks source link

Fix: Multiple queries were fired #311

Closed Koustavd18 closed 2 months ago

Koustavd18 commented 2 months ago

Issue

Multiple Queries were being fired and Log table time range is incorrect

Addressing the footer multiple query call in this PR

Explanation If a user opens console and halts in the home page for a while the time range passed for fetch functions are incorrect and the Count fetch functions is fired twice for due to the duplication of timeRange object

Solution The cleaning of the log store is done by a useEffect callback which executes the function after the component is rendered. This is changed so that the cleaning of the logsStore is done before the query is fired

Koustavd18 commented 2 months ago

Time Range duplication and multiple query for footer addressed. Mutiple query and time range duplication and for event Graph will be solved in a future PR