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

Add REST endpoint to get DOT graph of a job #242

Merged
merged 25 commits into from
Sep 27, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added id to ActionsCell, added download link for dot file data
  • Loading branch information
KenSuenobu committed Sep 26, 2022
commit 42fb80b213fa17ef48bb481c241a0ed5621b4e25
7 changes: 7 additions & 0 deletions ballista/ui/scheduler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ Starting the development server...
```

Now access to http://localhost:3000/

**NOTE**: If you get an error when running the `yarn start` command above, make sure
to use the `lts` version of npm.

You can install it by running: `npm install --lts`. This should fix any errors that
may occur when trying to start the Ballista UI project.

7 changes: 4 additions & 3 deletions ballista/ui/scheduler/src/components/QueriesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ export interface QueriesListProps {
export const ActionsCell: (props: any) => React.ReactNode = (props: any) => {
return (
<Flex>
<FaStop color={"red"} title={"stop"} />
<FaStop color={"red"} title={"Stop this job"} />
<Box mx={2}></Box>
<GrDocumentDownload title={"plan"} />
<a href={"/api/job/" + props.value + "/dot"} download={props.value + ".dot"}><GrDocumentDownload title={"Download DOT Plan"} /></a>
</Flex>
);
};
Expand Down Expand Up @@ -87,7 +87,8 @@ const columns: Column<any>[] = [
},
{
Header: "Actions",
accessor: "",
accessor: "job_id",
id: "action_cell",
Cell: ActionsCell,
},
];
Expand Down