-
Notifications
You must be signed in to change notification settings - Fork 239
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: Added button to execute all query cells in a datadoc after the current cell #1296
base: master
Are you sure you want to change the base?
Conversation
hi @jij1949 thanks for the PR. |
querybook/webapp/components/DataDocQueryCell/DataDocQueryCell.tsx
Outdated
Show resolved
Hide resolved
…and from all from here buttons
docId, | ||
queryIndexInDoc | ||
); | ||
console.log(onRunAllFromIndex); |
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.
remove console.log
if (index !== undefined) { | ||
queryCells = queryCells.slice(index); | ||
} |
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.
is this the index of the query cell in the datadoc, including text cells? e.g. what if there is a text cell before the starting query cell, is the slicing still correct?
same for the start_index
in the above .py file, please double confirm
|
||
export function useRunAllFromIndex(docId: number, index?: number) { | ||
const header = | ||
index === undefined ? 'Run All Cells' : 'Run all cells below'; |
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.
please keep the case consistent.
This feature adds an additional run button for each query cell which will execute that query cell along with all of the query cells below it in the datadoc. As a user, when a time-consuming datadoc execution crashes, I want to be able to pick up the execution where it left off in order to avoid running the cells that already executed again. This new button allows the user to continue the datadoc execution from the specific cell where the execution crashed before.