Skip to content

Commit 3852e07

Browse files
committed
Remove unused files
1 parent 3c676f4 commit 3852e07

File tree

8 files changed

+3
-151
lines changed

8 files changed

+3
-151
lines changed

src/main/frontend/common/RestClient.tsx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,6 @@ export async function getRunStatusFromPath(
5454
}
5555
}
5656

57-
export async function getRunStatus(): Promise<RunStatus | null> {
58-
try {
59-
let response = await fetch("tree");
60-
if (!response.ok) throw response.statusText;
61-
let json = await response.json();
62-
if (json.data.hasOwnProperty("complete")) {
63-
// The API returned 'complete' but we expect 'isComplete'.
64-
if ("complete" in json.data) {
65-
json.data["isComplete"] = json.data["complete"];
66-
delete json.data["complete"];
67-
}
68-
if (!("isComplete" in json.data)) {
69-
console.error("Did not get 'complete' status from API.");
70-
}
71-
}
72-
return json.data;
73-
} catch (e) {
74-
console.error(`Caught error getting tree: '${e}'`);
75-
return null;
76-
}
77-
}
78-
7957
export async function getRunSteps(): Promise<StepInfo[] | null> {
8058
try {
8159
let response = await fetch("allSteps");

src/main/frontend/pipeline-console-view/pipeline-console/main/CloseIcon.tsx

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/main/frontend/pipeline-console-view/pipeline-console/main/ConsoleLogCard.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect, useState, Suspense } from "react";
1+
import React, { useEffect, Suspense } from "react";
22
import "./console-log-card.scss";
33

44
import {
@@ -7,15 +7,12 @@ import {
77
StepLogBufferInfo,
88
} from "./PipelineConsoleModel";
99

10-
import ConsoleLogModal from "./ConsoleLogModal";
1110
import StatusIcon from "../../../common/components/status-icon";
1211
import { total } from "../../../common/utils/timings";
1312

1413
const ConsoleLogStream = React.lazy(() => import("./ConsoleLogStream"));
1514

1615
export default function ConsoleLogCard(props: ConsoleLogCardProps) {
17-
const [open, setOpen] = useState(false);
18-
1916
useEffect(() => {
2017
if (props.isExpanded) {
2118
props.handleMoreConsoleClick(props.step.id, props.stepBuffer.startByte);
@@ -113,16 +110,6 @@ export default function ConsoleLogCard(props: ConsoleLogCardProps) {
113110
</div>
114111
</button>
115112

116-
<ConsoleLogModal
117-
logBuffer={props.stepBuffer}
118-
handleMoreConsoleClick={props.handleMoreConsoleClick}
119-
step={props.step}
120-
truncatedLogWarning={getTruncatedLogWarning()}
121-
maxHeightScale={0.85}
122-
open={open}
123-
setClose={() => setOpen(false)}
124-
/>
125-
126113
{props.isExpanded && (
127114
<div style={{ paddingTop: "0.5rem" }}>
128115
{getTruncatedLogWarning()}

src/main/frontend/pipeline-console-view/pipeline-console/main/ConsoleLogModal.tsx

Lines changed: 0 additions & 77 deletions
This file was deleted.

src/main/frontend/pipeline-console-view/pipeline-console/main/StageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22

33
import { StepInfo, StageInfo, StepLogBufferInfo } from "./PipelineConsoleModel";
44
import StageDetails from "./stage-details";
5-
import StageSteps from "./StageSteps";
5+
import StageSteps from "./stage-steps";
66

77
export default function StageView(props: StageViewProps) {
88
return (

src/main/frontend/pipeline-console-view/pipeline-console/main/ScrollToTopBottom.tsx renamed to src/main/frontend/pipeline-console-view/pipeline-console/main/scroll-to-top-bottom.tsx

File renamed without changes.

src/main/frontend/pipeline-console-view/pipeline-console/main/StageSteps.tsx renamed to src/main/frontend/pipeline-console-view/pipeline-console/main/stage-steps.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { StepInfo, StepLogBufferInfo } from "../../../common/RestClient";
33
import ConsoleLogCard from "./ConsoleLogCard";
44
import { LOG_FETCH_SIZE, StageInfo } from "./PipelineConsoleModel";
55
import "./stage-steps.scss";
6-
import ScrollToTopBottom from "./ScrollToTopBottom";
6+
import ScrollToTopBottom from "./scroll-to-top-bottom";
77

88
export default function StageSteps({
99
stage,

src/main/frontend/pipeline-console-view/pipeline-console/main/steps-poller.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ import {
1010
} from "./PipelineConsoleModel";
1111
import useRunPoller from "../../../common/tree-api";
1212

13-
/**
14-
* TODO
15-
*/
1613
export function useStepsPoller(props: RunPollerProps) {
1714
const { run } = useRunPoller({
1815
currentRunPath: props.currentRunPath,
@@ -177,7 +174,6 @@ export function useStepsPoller(props: RunPollerProps) {
177174
return buffers;
178175
};
179176

180-
// TODO - kill this method completely?
181177
const getOpenStage = (): StageInfo | null => {
182178
const findStage = (stages: StageInfo[]): StageInfo | null => {
183179
for (let stage of stages) {

0 commit comments

Comments
 (0)