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: Added button to execute all query cells in a datadoc after the current cell #1296

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

jij1949
Copy link
Contributor

@jij1949 jij1949 commented Jul 14, 2023

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.

Screenshot 2023-07-14 at 2 12 22 PM Screenshot 2023-07-14 at 2 12 34 PM Screenshot 2023-07-14 at 2 12 47 PM

@jczhong84
Copy link
Collaborator

jczhong84 commented Aug 15, 2023

hi @jij1949 thanks for the PR.
We're trying to avoid adding new elements in Run button line, which will compress the space of the title. As this is not a so commonly used feature, I think it might be not worthy to always show it, how about moving it to the "..." menu? or consolidate it somehow with the "Run All" button on the right side?

docId,
queryIndexInDoc
);
console.log(onRunAllFromIndex);
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove console.log

Comment on lines +34 to +36
if (index !== undefined) {
queryCells = queryCells.slice(index);
}
Copy link
Collaborator

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';
Copy link
Collaborator

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.

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.

3 participants