-
Notifications
You must be signed in to change notification settings - Fork 31
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
Refactor async calls and minor bug fixes #274
Conversation
Signed-off-by: Shenoy Pratik <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #274 +/- ##
==========================================
+ Coverage 59.88% 61.47% +1.58%
==========================================
Files 33 33
Lines 1623 1599 -24
Branches 288 284 -4
==========================================
+ Hits 972 983 +11
+ Misses 548 518 -30
+ Partials 103 98 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Shenoy Pratik <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
case AsyncQueryStatus.Failed: | ||
case AsyncQueryStatus.Cancelled: | ||
isQueryFulfilled = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a question about this isQueryFulfilled this is set as true here so that the loading stops?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isQueryFulfilled
is an internal flag that keeps a check for cancelQuery. If query is fulfilled either with success
or failed
status then we will not run cancel query.
* refactor async calls, minor bug fixes Signed-off-by: Shenoy Pratik <[email protected]> * type.ts lint updates and snapshot updates Signed-off-by: Shenoy Pratik <[email protected]> * adding lint error fixes Signed-off-by: Shenoy Pratik <[email protected]> * fix named export for QueryResults Signed-off-by: Shenoy Pratik <[email protected]> * remove default from named export Signed-off-by: Shenoy Pratik <[email protected]> * fix flaky unit test and fix lint issues in QueryResults.test.tsx Signed-off-by: Shenoy Pratik <[email protected]> * fix flaky tests and lint errors Signed-off-by: Shenoy Pratik <[email protected]> * error modal updates Signed-off-by: Shenoy Pratik <[email protected]> * update main.tsx snapshot Signed-off-by: Shenoy Pratik <[email protected]> --------- Signed-off-by: Shenoy Pratik <[email protected]> (cherry picked from commit 0e30a8d) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* refactor async calls, minor bug fixes * type.ts lint updates and snapshot updates * adding lint error fixes * fix named export for QueryResults * remove default from named export * fix flaky unit test and fix lint issues in QueryResults.test.tsx * fix flaky tests and lint errors * error modal updates * update main.tsx snapshot --------- (cherry picked from commit 0e30a8d) Signed-off-by: Shenoy Pratik <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Issues Resolved
#224
#217
#203
#202
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.