Skip to content

Conversation

mariusandra
Copy link
Collaborator

Changes

Implements cancellation for EventsQuery and HogQLQuery nodes

2023-03-09 17 14 05

2023-03-09 17 15 13

How did you test this code?

WIP. Tested in the browser so far.

@mariusandra mariusandra marked this pull request as ready for review March 9, 2023 20:07
@mariusandra mariusandra requested review from a team, pauldambra and Twixes March 9, 2023 20:11
Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -30,6 +30,13 @@ describe('dataNodeLogic - query cancellation', () => {
},
post: {
'/api/projects/997/insights/cancel/': [201],
'/api/projects/997/query/': async () => {
return new Promise((resolve) =>
Copy link
Member

Choose a reason for hiding this comment

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

IIRC we found msw.delay was safer than setTimeout for cancellation tests

But some tests > no tests so 🤷

@mariusandra mariusandra merged commit f0462f2 into master Mar 13, 2023
@mariusandra mariusandra deleted the cancel-explorer-queries branch March 13, 2023 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants