Skip to content

Commit

Permalink
Misc code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahbenizzy committed Apr 29, 2024
1 parent 5373008 commit 86f1eb0
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion ui/frontend/src/components/dashboard/Runs/Run/Run.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,6 @@ const AutoRefreshButton = (props: {
intervalId = setInterval(() => {
refetch(); // Call the refetch function
setElapsedTime((prevTime) => prevTime + REFRESH_SECONDS); // Update elapsed time
console.log("Refreshing...");
}, REFRESH_SECONDS * 1000); // Convert seconds to milliseconds
} else {
// Disable auto-refresh and reset elapsed time if total duration is reached
Expand Down
1 change: 0 additions & 1 deletion ui/frontend/src/components/dashboard/Runs/RunSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ const RunQueryFilters = (props: {
allTagOptions: Map<string, Set<string>>;
allStatusOptions: Set<string>;
}) => {
console.log(props.query.selectedTags);
return (
<div className="flex flex-wrap gap-4 items-center">
<div className="w-full lg:w-144">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -634,11 +634,6 @@ export const DAGWorksDescribe3View = (props: {
if (value.length > 1) {
return <></>;
}
// console.log(value[0].mean, value[0].std)
// if (value[0].mean === null || value[0].std === null) {
// //eslint-disable-next-line no-debugger
// debugger;
// }
const meanStr = value[0].mean?.toFixed(2);
const stdStr = value[0].std?.toFixed(2);

Expand All @@ -650,9 +645,6 @@ export const DAGWorksDescribe3View = (props: {
: `${meanStr}±${stdStr}`}
</code>
</div>
// <div>{`${value[0].mean.toFixed(2)} ± ${value[0].std.toFixed(
// 2
// )}`}</div>
);
},
},
Expand Down
4 changes: 0 additions & 4 deletions ui/frontend/src/components/dashboard/Visualize/DAGViz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,6 @@ const BaseNodeComponent = (props: {
selectedDAGIndices,
} = useContext(SelectedNodesContext);

// console.log(selectedNodes)
const highlightedContext = getStateContext(
upstreamNodes,
downstreamNodes,
Expand Down Expand Up @@ -764,7 +763,6 @@ const FunctionNodeComponent = (props: {
selectedDAGIndices,
} = useContext(SelectedNodesContext);

// console.log(selectedNodes)
const highlightedContext = getStateContext(
upstreamNodes,
downstreamNodes,
Expand Down Expand Up @@ -1154,7 +1152,6 @@ const createNodes = (
const codeArtifactsById = new Map(
codeArtifacts.map((ca) => [ca.id as number, ca])
);
console.log(allCodeContents, codeArtifactsById);
const nodeRunsGroupedByTemplateName = new Map<
string,
NodeRunWithAttributes[]
Expand All @@ -1181,7 +1178,6 @@ const createNodes = (
const nodes = dagTemplate.nodes.map((nodeTemplate) => {
// TODO -- allow for multiple, and select the primary
const codeArtifactId = nodeTemplate.code_artifacts[0];
console.log(nodeTemplate.name, codeArtifactId, allCodeContentsByArtifactId);
return {
nodeTemplate: nodeTemplate,
nodeRuns: nodeRunsGroupedByTemplateName.get(nodeTemplate.name), // TODO -- use Node Runs to get this to work
Expand Down
2 changes: 0 additions & 2 deletions ui/frontend/src/components/dashboard/Visualize/VizConsole.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { DAGTemplateWithData } from "../../../state/api/friendlyApi";
export const NodeVizConsole = (props: NodeVizConsoleProps) => {
// const [open, setOpen] = useState(true);
const { open, nodes, setOpen } = props;
console.log(open, nodes, setOpen);

const uniqueCodeMap = nodes.reduce((acc, node) => {
const group = node.codeArtifact?.name;
Expand All @@ -31,7 +30,6 @@ export const NodeVizConsole = (props: NodeVizConsoleProps) => {
}
return acc;
}, new Map<string, DAGNode[]>());
console.log(uniqueCodeMap);

return (
<Transition.Root show={open} as={Fragment}>
Expand Down

0 comments on commit 86f1eb0

Please sign in to comment.