From 374e9b4129d2c2a1ef4780c38a7a4eb054224295 Mon Sep 17 00:00:00 2001 From: vyzaldysanchez Date: Thu, 23 Mar 2023 11:13:11 -0400 Subject: [PATCH] Displays feed ID for OCR2 Job Specs --- .changeset/eighty-moose-float.md | 5 +++++ src/screens/Job/JobView.tsx | 1 + src/screens/Job/generateJobDefinition.test.ts | 2 ++ src/screens/Job/generateJobDefinition.ts | 1 + 4 files changed, 9 insertions(+) create mode 100644 .changeset/eighty-moose-float.md diff --git a/.changeset/eighty-moose-float.md b/.changeset/eighty-moose-float.md new file mode 100644 index 00000000..d6cb1096 --- /dev/null +++ b/.changeset/eighty-moose-float.md @@ -0,0 +1,5 @@ +--- +'@smartcontractkit/operator-ui': minor +--- + +Displays feed ID on OCR2 JobSpec diff --git a/src/screens/Job/JobView.tsx b/src/screens/Job/JobView.tsx index 0375085b..aec407c1 100644 --- a/src/screens/Job/JobView.tsx +++ b/src/screens/Job/JobView.tsx @@ -77,6 +77,7 @@ const JOB_PAYLOAD__SPEC = gql` transmitterID pluginType pluginConfig + feedID } ... on VRFSpec { evmChainID diff --git a/src/screens/Job/generateJobDefinition.test.ts b/src/screens/Job/generateJobDefinition.test.ts index 7018cac7..81c1fc35 100644 --- a/src/screens/Job/generateJobDefinition.test.ts +++ b/src/screens/Job/generateJobDefinition.test.ts @@ -386,6 +386,7 @@ observationTimeout = "10s" juelsPerFeeCoinSource: '1000000000', }, transmitterID: '0x01010CaB43e77116c95745D219af1069fE050d7A', + feedID: 'feed-id', }, runs: { results: [], @@ -414,6 +415,7 @@ p2pv2Bootstrappers = [ ] relay = "evm" pluginType = "median" +feedID = "feed-id" transmitterID = "0x01010CaB43e77116c95745D219af1069fE050d7A" observationSource = """ fetch [type=http method=POST url="http://localhost:8001" requestData="{\\\\"hi\\\\": \\\\"hello\\\\"}"]; diff --git a/src/screens/Job/generateJobDefinition.ts b/src/screens/Job/generateJobDefinition.ts index 4bf5b719..38e0a060 100644 --- a/src/screens/Job/generateJobDefinition.ts +++ b/src/screens/Job/generateJobDefinition.ts @@ -188,6 +188,7 @@ export const generateJobDefinition = ( 'relayConfig', 'pluginType', 'pluginConfig', + 'feedID', ), // We need to call 'extractSpecFields' again here so we get the spec // fields displaying in alphabetical order.