Skip to content

ref(dashboards): Migrate logs dataset to useSeriesQuery/useTableQuery pattern#106782

Merged
DominikB2014 merged 3 commits intomasterfrom
dominikbuszowiecki/browse-257-migrate-logs-dataset-to-hook-pattern
Jan 23, 2026
Merged

ref(dashboards): Migrate logs dataset to useSeriesQuery/useTableQuery pattern#106782
DominikB2014 merged 3 commits intomasterfrom
dominikbuszowiecki/browse-257-migrate-logs-dataset-to-hook-pattern

Conversation

@DominikB2014
Copy link
Contributor

@DominikB2014 DominikB2014 commented Jan 22, 2026

This PR migrates the logs dataset from the legacy request pattern to use the modern React Query hooks pattern (useSeriesQuery and useTableQuery) similar to #106779

… pattern

This commit migrates the logs dataset to use the modern React Query hook
pattern, replacing the old getTableRequest and getSeriesRequest functions.

Changes:
- Add useLogsSeriesQuery and useLogsTableQuery hooks
- Remove getTableRequest and getSeriesRequest from LogsConfig
- Add retry logic for 429 status codes (up to 10 retries)
- Add test coverage for both hooks
- Clean up unused imports

Net reduction of 113 lines of code
@linear
Copy link

linear bot commented Jan 22, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 22, 2026
@DominikB2014 DominikB2014 marked this pull request as ready for review January 22, 2026 17:57
@DominikB2014 DominikB2014 requested a review from a team as a code owner January 22, 2026 17:57
@DominikB2014 DominikB2014 marked this pull request as draft January 22, 2026 17:58
@DominikB2014 DominikB2014 marked this pull request as ready for review January 22, 2026 18:18
@DominikB2014 DominikB2014 merged commit 6d340fd into master Jan 23, 2026
53 checks passed
@DominikB2014 DominikB2014 deleted the dominikbuszowiecki/browse-257-migrate-logs-dataset-to-hook-pattern branch January 23, 2026 17:14
JonasBa pushed a commit that referenced this pull request Jan 27, 2026
… pattern (#106782)

This PR migrates the logs dataset from the legacy request pattern to use
the modern React Query hooks pattern (`useSeriesQuery` and
`useTableQuery`) similar to
#106779
@github-actions github-actions bot locked and limited conversation to collaborators Feb 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants