Skip to content

Commit b8ae247

Browse files
Hide the auth property from actions that don't need auth (#1568)
Fixes OPS-2976 <img width="468" height="533" alt="image" src="https://github.com/user-attachments/assets/fecdb9bf-85c3-4f80-adfd-f3f34cc7c58b" /> <img width="464" height="398" alt="image" src="https://github.com/user-attachments/assets/407333fe-0e1b-4439-afd8-15baffcfa213" /> <img width="458" height="384" alt="image" src="https://github.com/user-attachments/assets/2c4e7fb6-3de1-4e47-bd82-b4a025ab217c" /> <img width="484" height="567" alt="image" src="https://github.com/user-attachments/assets/4a6fbb29-f783-4d9c-9484-fe3c452aee77" />
1 parent 6068ee0 commit b8ae247

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

packages/blocks/aws/src/lib/actions/arn/build-arn-action.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { buildArn } from '@openops/common';
33

44
export const buildArnAction = createAction({
55
auth: BlockAuth.None(),
6+
requireAuth: false,
67
name: 'build_arn',
78
description: 'Build ARN (Amazon Resource Name) from the given parameters',
89
displayName: 'Build ARN',

packages/blocks/aws/src/lib/actions/arn/parse-arn-action.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { parseArn } from '@openops/common';
33

44
export const parseArnAction = createAction({
55
auth: BlockAuth.None(),
6+
requireAuth: false,
67
name: 'parse_arn',
78
description: 'Parse information from a given ARN (Amazon Resource Name) ',
89
displayName: 'Parse ARN',

packages/blocks/aws/test/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ describe('block declaration tests', () => {
8989
},
9090
build_arn: {
9191
name: 'build_arn',
92-
requireAuth: true,
92+
requireAuth: false,
9393
},
9494
parse_arn: {
9595
name: 'parse_arn',
96-
requireAuth: true,
96+
requireAuth: false,
9797
},
9898
ec2_terminate_instances: {
9999
name: 'ec2_terminate_instances',

packages/blocks/cloudformation/src/lib/modify/delete-resource-from-template.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { getLogicalIdDropdown } from './logical-id-dropdown';
44

55
export const deleteResourceFromTemplate = createAction({
66
auth: BlockAuth.None(),
7+
requireAuth: false,
78
name: 'delete_resource',
89
displayName: 'Delete resource',
910
description: 'Delete a resource from a given CloudFormation template',

packages/blocks/cloudformation/src/lib/modify/modify-template.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { getResourceProperties } from './resource-properties';
55

66
export const modifyTemplate = createAction({
77
auth: BlockAuth.None(),
8+
requireAuth: false,
89
name: 'update_cloudformation_file',
910
displayName: 'Update resource properties',
1011
description:

0 commit comments

Comments
 (0)