Skip to content

Commit

Permalink
Notebook cell update is now asynchronous. (Velocidex#358)
Browse files Browse the repository at this point in the history
For long running queries we now update the notebook cell
asyncrounously:

1. Wait up to 1 second to allow very quick queries to complete.
2. If the query takes more than a second, we return a calculating
message to the browser.
3. The browser will continue to watch for changes in the cell and
render the complete cell when done.

The calculation can now also be cancelled by adding a cancel button to
the GUI.
  • Loading branch information
scudette authored May 13, 2020
1 parent d9ccff6 commit afa7b1e
Show file tree
Hide file tree
Showing 27 changed files with 805 additions and 314 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ clean:

generate:
go generate ./vql/windows/win32_windows.go
go generate ./api/mock/

check:
staticcheck ./...
Expand Down
8 changes: 4 additions & 4 deletions api/artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ parameters:
sources:
- precondition:
SELECT OS From info() where OS = 'windows'
queries:
- SELECT * FROM scope()
SELECT OS From info() where OS = 'windows' OR OS = 'linux' OR OS = 'darwin'
query: |
SELECT * FROM info()
LIMIT 10
# Reports can be MONITORING_DAILY, CLIENT, SERVER_EVENT
reports:
Expand Down
56 changes: 38 additions & 18 deletions api/mock/api_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit afa7b1e

Please sign in to comment.