Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: pass abort signal to cancel api request on query-key change or … #4193

Merged
merged 5 commits into from
Dec 12, 2023

Conversation

YounixM
Copy link
Collaborator

@YounixM YounixM commented Dec 8, 2023

…dashboard unmount

Summary

Pass abort signal to cancel API request on query-key change or dashboard unmount

Related Issues / PR's

Fixes #4147

Before:
https://www.loom.com/share/a10502d695be4fd5ab40140ca136d015?sid=0509f83f-33ab-40a0-9cba-288af24b5193

After:
https://www.loom.com/share/1914371759ea4f24807813d83eee0367?sid=6d5a1658-8e27-4fcc-9043-4cb65d38c9c3)

Affected Areas and Manually Tested Areas

Dashboard Page

@github-actions github-actions bot added the enhancement New feature or request label Dec 8, 2023
@YounixM YounixM force-pushed the dashboard-query-range-abort-signal branch from 509f112 to 1df8fae Compare December 8, 2023 08:47
@YounixM YounixM force-pushed the dashboard-query-range-abort-signal branch from 1056a9b to d2dadae Compare December 8, 2023 14:10
frontend/package.json Outdated Show resolved Hide resolved
@YounixM YounixM force-pushed the dashboard-query-range-abort-signal branch from 075a074 to 0831e34 Compare December 10, 2023 11:19
Copy link
Member

@nityanandagohain nityanandagohain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried to run this pr locally but it doesn't seem to cancel the requests. Will share the exact dashboard

Copy link
Member

@nityanandagohain nityanandagohain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, we can create PR's for other pages as well.

@YounixM YounixM force-pushed the dashboard-query-range-abort-signal branch from 7be73a7 to 066e8bf Compare December 12, 2023 11:03
frontend/src/api/ErrorResponseHandler.ts Outdated Show resolved Hide resolved
frontend/src/api/ErrorResponseHandler.ts Show resolved Hide resolved
frontend/src/api/index.ts Outdated Show resolved Hide resolved
@palashgdev palashgdev self-requested a review December 12, 2023 11:11
palashgdev
palashgdev previously approved these changes Dec 12, 2023
Copy link
Contributor

@palashgdev palashgdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

functionality is working as expected ... though small comments

@YounixM YounixM merged commit 8b1a781 into develop Dec 12, 2023
11 checks passed
@prashant-shahi prashant-shahi deleted the dashboard-query-range-abort-signal branch December 12, 2023 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FE: Requests are not cancelled
4 participants