Skip to content

Commit

Permalink
update naming to standard capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
ettec committed Jun 5, 2024
1 parent 818bed5 commit a3d6d30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/screens/Job/JobView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const JOB_PAYLOAD__SPEC = gql`
workflowOwner
workflow
}
... on StandardCapabilitySpec {
... on StandardCapabilitiesSpec {
command
config
createdAt
Expand Down
6 changes: 3 additions & 3 deletions src/screens/Job/generateJobDefinition.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -663,13 +663,13 @@ workflowOwner = "<workflow owner>"
it('generates a valid StandardCapability definition', () => {
const job: JobPayload_Fields = {
id: '1',
type: 'standardcapability',
type: 'standardcapabilities',
schemaVersion: 1,
name: 'standardcapability test',
name: 'standardcapabilities test',
externalJobID: '00000000-0000-0000-0000-0000000000001',
maxTaskDuration: '10s',
spec: {
__typename: 'StandardCapabilitySpec',
__typename: 'StandardCapabilitiesSpec',
command: '<command>',
config: '<config>',
},
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Job/generateJobDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export const generateJobDefinition = (

break

case 'StandardCapabilitySpec':
case 'StandardCapabilitiesSpec':
values = {
...extractJobFields(job),
...extractSpecFields(
Expand Down

0 comments on commit a3d6d30

Please sign in to comment.