Skip to content

Commit 080981e

Browse files
refactor: run-config model (#427)
1 parent 2fb87a9 commit 080981e

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

src/ui/components/lineage/sidebarTabsSwitchers/stepTabSwitcher.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -225,18 +225,18 @@ const StepnodeTabHeader: React.FC<any> = ({ node, fetching }) => {
225225
<tr>
226226
<td className="td_key">Cache enabled</td>
227227
<td className="td_value">
228-
{node?.step?.config?.enable_cache !== null
229-
? node?.step?.config?.enable_cache.toString()
228+
{node?.config?.enable_cache !== null
229+
? node?.config?.enable_cache.toString()
230230
: 'true'}
231231
</td>
232232
</tr>
233233
<tr>
234-
{node.enable_artifact_metadata &&
235-
node.enable_artifact_metadata ? (
234+
{node.config.enable_artifact_metadata &&
235+
node.config.enable_artifact_metadata ? (
236236
<>
237237
<td className="td_key">enable_artifact_metadata</td>
238238
<td className="td_value">
239-
{node?.enable_artifact_metadata}
239+
{node?.config.enable_artifact_metadata}
240240
</td>
241241
</>
242242
) : (
@@ -247,7 +247,7 @@ const StepnodeTabHeader: React.FC<any> = ({ node, fetching }) => {
247247
<td className='td_key'>source</td>
248248
<td className='td_value'>{node?.step?.spec?.source}</td>
249249
</tr> */}
250-
{Object.entries(node?.input_artifacts).length >= 1 && (
250+
{Object.entries(node?.inputs).length >= 1 && (
251251
<tr>
252252
<td
253253
style={{ textDecoration: 'underline' }}
@@ -258,7 +258,7 @@ const StepnodeTabHeader: React.FC<any> = ({ node, fetching }) => {
258258
<td></td>
259259
</tr>
260260
)}
261-
{Object.entries(node?.input_artifacts || {}).map(
261+
{Object.entries(node?.inputs || {}).map(
262262
([key, value]: any, i) => {
263263
return (
264264
<tr key={i}>
@@ -311,7 +311,7 @@ const StepnodeTabHeader: React.FC<any> = ({ node, fetching }) => {
311311
);
312312
},
313313
)}
314-
{Object.entries(node?.output_artifacts).length >= 1 && (
314+
{Object.entries(node?.outputs).length >= 1 && (
315315
<tr>
316316
<td
317317
style={{ textDecoration: 'underline' }}
@@ -322,7 +322,7 @@ const StepnodeTabHeader: React.FC<any> = ({ node, fetching }) => {
322322
<td></td>
323323
</tr>
324324
)}
325-
{Object.entries(node?.output_artifacts || {}).map(
325+
{Object.entries(node?.outputs || {}).map(
326326
([key, value]: any, i) => {
327327
return (
328328
<tr key={i}>

src/ui/layouts/pipelines/RunDetail/Configuration/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const Configuration: React.FC<{ runId: TId }> = ({ runId }) => {
3434
return (
3535
<FlexBox.Column fullWidth>
3636
<NonEditableRunConfig
37-
runConfiguration={run.pipelineConfiguration}
37+
runConfiguration={run.config}
3838
></NonEditableRunConfig>
3939
{/* <FlexBox
4040
marginBottom="md"

src/ui/layouts/runs/RunDetail/Configuration/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import { useService } from './useService';
44
import { NonEditableRunConfig } from '../../../NonEditableRunConfig';
55
export const Configuration: React.FC<{ runId: TId }> = ({ runId }) => {
66
const { run } = useService({ runId });
7+
78
return (
89
<FlexBox.Column fullWidth>
910
<NonEditableRunConfig
10-
runConfiguration={run.pipelineConfiguration}
11+
runConfiguration={run.config}
1112
></NonEditableRunConfig>
1213
</FlexBox.Column>
1314
);

src/ui/layouts/stackComponents/RunDetail/Configuration/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const Configuration: React.FC<{ runId: TId }> = ({ runId }) => {
3535
return (
3636
<FlexBox.Column fullWidth>
3737
<NonEditableRunConfig
38-
runConfiguration={run.pipelineConfiguration}
38+
runConfiguration={run.config}
3939
></NonEditableRunConfig>
4040
{/* <FlexBox
4141
marginBottom="md"

src/ui/layouts/stacks/RunDetail/Configuration/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const Configuration: React.FC<{ runId: TId }> = ({ runId }) => {
3737
return (
3838
<FlexBox.Column fullWidth>
3939
<NonEditableRunConfig
40-
runConfiguration={run.pipelineConfiguration}
40+
runConfiguration={run.config}
4141
></NonEditableRunConfig>
4242
{/* <FlexBox
4343
marginBottom="md"

0 commit comments

Comments
 (0)