+ >({});
+
+ React.useEffect(() => {
+ getLaunchPlan(launchPlanId).then(({ spec }) => setLaunchPlanSpec(spec));
+ }, [launchPlanId]);
+
+ const details: DetailItem[] = [
+ {
+ label: ExecutionMetadataLabels.serviceAccount,
+ value: launchPlanSpec?.authRole?.kubernetesServiceAccount
+ },
+ {
+ label: ExecutionMetadataLabels.rawOutputPrefix,
+ value: launchPlanSpec?.rawOutputDataConfig?.outputLocationPrefix
+ },
+ {
+ label: ExecutionMetadataLabels.parallelism,
+ value: maxParallelism
+ }
+ ];
+
+ return (
+ <>
+ {details.map(({ className, label, value }, idx) => (
+
+
+ {label}
+
+
+ {value}
+
+
+ ))}
+ >
+ );
+};
diff --git a/src/components/Executions/ExecutionDetails/constants.ts b/src/components/Executions/ExecutionDetails/constants.ts
index 4c56659b4..1ea06dfb2 100644
--- a/src/components/Executions/ExecutionDetails/constants.ts
+++ b/src/components/Executions/ExecutionDetails/constants.ts
@@ -4,7 +4,10 @@ export enum ExecutionMetadataLabels {
duration = 'Duration',
time = 'Time',
relatedTo = 'Related to',
- version = 'Version'
+ version = 'Version',
+ serviceAccount = 'Service Account',
+ rawOutputPrefix = 'Raw Output Prefix',
+ parallelism = 'Parallelism'
}
export const tabs = {
diff --git a/src/components/Executions/ExecutionDetails/test/ExecutionMetadata.test.tsx b/src/components/Executions/ExecutionDetails/test/ExecutionMetadata.test.tsx
index 019ffa123..6c4a0d9ac 100644
--- a/src/components/Executions/ExecutionDetails/test/ExecutionMetadata.test.tsx
+++ b/src/components/Executions/ExecutionDetails/test/ExecutionMetadata.test.tsx
@@ -12,6 +12,10 @@ const clusterTestId = `metadata-${ExecutionMetadataLabels.cluster}`;
const startTimeTestId = `metadata-${ExecutionMetadataLabels.time}`;
const durationTestId = `metadata-${ExecutionMetadataLabels.duration}`;
+jest.mock('models/Launch/api', () => ({
+ getLaunchPlan: jest.fn(() => Promise.resolve({ spec: {} }))
+}));
+
describe('ExecutionMetadata', () => {
let execution: Execution;
beforeEach(() => {
diff --git a/src/models/Launch/api.ts b/src/models/Launch/api.ts
index 81e5b1d57..552c4d42e 100644
--- a/src/models/Launch/api.ts
+++ b/src/models/Launch/api.ts
@@ -27,7 +27,7 @@ export const getLaunchPlan = (id: Identifier, config?: RequestConfig) =>
getAdminEntity(
{
path: makeIdentifierPath(endpointPrefixes.launchPlan, id),
- messageType: Admin.Task
+ messageType: Admin.LaunchPlan
},
config
);