feat(copy-paste): allow cross workflow selection, paste, move for blocks #7813
ci.yml
on: pull_request
Detect Version
Test and Build
/
Test and Build
39s
Check Docs Changes
0s
Matrix: Build AMD64
Matrix: Build ARM64 (GHCR Only)
Process Docs
/
Process Documentation Embeddings
Matrix: Create GHCR Manifests
Annotations
10 errors and 2 warnings
|
socket/middleware/permissions.test.ts > checkRolePermission > specific operations > should allow "add" for admin:
apps/sim/socket/middleware/permissions.test.ts#L224
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ socket/middleware/permissions.test.ts:224:32
|
|
socket/middleware/permissions.test.ts > checkRolePermission > write role > should allow remove operation:
packages/testing/src/assertions/permission.assertions.ts#L8
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ expectPermissionAllowed ../../packages/testing/src/assertions/permission.assertions.ts:8:26
❯ socket/middleware/permissions.test.ts:73:7
|
|
socket/middleware/permissions.test.ts > checkRolePermission > write role > should allow add operation:
packages/testing/src/assertions/permission.assertions.ts#L8
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ expectPermissionAllowed ../../packages/testing/src/assertions/permission.assertions.ts:8:26
❯ socket/middleware/permissions.test.ts:68:7
|
|
socket/middleware/permissions.test.ts > checkRolePermission > write role > should allow all operations for write role (same as admin):
packages/testing/src/assertions/permission.assertions.ts#L8
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ expectPermissionAllowed ../../packages/testing/src/assertions/permission.assertions.ts:8:26
❯ socket/middleware/permissions.test.ts:62:9
|
|
socket/middleware/permissions.test.ts > checkRolePermission > admin role > should allow duplicate operation:
packages/testing/src/assertions/permission.assertions.ts#L8
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ expectPermissionAllowed ../../packages/testing/src/assertions/permission.assertions.ts:8:26
❯ socket/middleware/permissions.test.ts:47:7
|
|
socket/middleware/permissions.test.ts > checkRolePermission > admin role > should allow remove operation:
packages/testing/src/assertions/permission.assertions.ts#L8
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ expectPermissionAllowed ../../packages/testing/src/assertions/permission.assertions.ts:8:26
❯ socket/middleware/permissions.test.ts:37:7
|
|
socket/middleware/permissions.test.ts > checkRolePermission > admin role > should allow add operation:
packages/testing/src/assertions/permission.assertions.ts#L8
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ expectPermissionAllowed ../../packages/testing/src/assertions/permission.assertions.ts:8:26
❯ socket/middleware/permissions.test.ts:32:7
|
|
socket/middleware/permissions.test.ts > checkRolePermission > admin role > should allow all operations for admin role:
packages/testing/src/assertions/permission.assertions.ts#L8
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ expectPermissionAllowed ../../packages/testing/src/assertions/permission.assertions.ts:8:26
❯ socket/middleware/permissions.test.ts:26:9
|
|
socket/index.test.ts > Socket Server Index Integration > Validation and Utils > should validate block operations with autoConnectEdge:
apps/sim/socket/index.test.ts#L334
AssertionError: expected [Function] to not throw an error but '[\n {\n "code": "invalid_union",\…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"code\": \"invalid_union\",
\"unionErrors\": [
{
\"issues\": [
{
\"received\": \"add\",
\"code\": \"invalid_enum_value\",
\"options\": [
\"update-position\",
\"update-name\",
\"toggle-enabled\",
\"update-parent\",
\"update-wide\",
\"update-advanced-mode\",
\"update-trigger-mode\",
\"toggle-handles\"
],
\"path\": [
\"operation\"
],
\"message\": \"Invalid enum value. Expected 'update-position' | 'update-name' | 'toggle-enabled' | 'update-parent' | 'update-wide' | 'update-advanced-mode' | 'update-trigger-mode' | 'toggle-handles', received 'add'\"
}
],
\"name\": \"ZodError\"
},
{
\"issues\": [
{
\"received\": \"add\",
\"code\": \"invalid_literal\",
\"expected\": \"batch-update-positions\",
\"path\": [
\"operation\"
],
\"message\": \"Invalid literal value, expected \\\"batch-update-positions\\\"\"
},
{
\"received\": \"block\",
\"code\": \"invalid_literal\",
\"expected\": \"blocks\",
\"path\": [
\"target\"
],
\"message\": \"Invalid literal value, expected \\\"blocks\\\"\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"array\",
\"received\": \"undefined\",
\"path\": [
\"payload\",
\"updates\"
],
\"message\": \"Required\"
}
],
\"name\": \"ZodError\"
},
{
\"issues\": [
{
\"received\": \"add\",
\"code\": \"invalid_literal\",
\"expected\": \"batch-add-blocks\",
\"path\": [
\"operation\"
],
\"message\": \"Invalid literal value, expected \\\"batch-add-blocks\\\"\"
},
{
\"received\": \"block\",
\"code\": \"invalid_literal\",
\"expected\": \"blocks\",
\"path\": [
\"target\"
],
\"message\": \"Invalid literal value, expected \\\"blocks\\\"\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"array\",
\"received\": \"undefined\",
\"path\": [
\"payload\",
\"blocks\"
],
\"message\": \"Required\"
}
],
\"name\": \"ZodError\"
},
{
\"issues\": [
{
\"received\": \"add\",
\"code\": \"invalid_literal\",
\"expected\": \"batch-remove-blocks\",
\"path\": [
\"operation\"
],
\"message\": \"Invalid literal value, expected \\\"batch-remove-blocks\\\"\"
},
{
\"received\": \"block\",
\"code\": \"invalid_literal\",
\"expected\": \"blocks\",
\"path\": [
\"target\"
],
\"message\": \"Invalid literal value, expected \\\"blocks\\\"\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"array\",
\"received\": \"undefined\",
\"path\": [
\"payload\",
\"ids\"
],
\"message\": \"Required\"
}
],
\"name\": \"ZodError\"
},
{
\"issues\": [
{
\"received\": \"block\",
\"code\": \"invalid_literal\",
\"expected\": \"edge\",
\"path\": [
\"target\"
],
\"message\":
|
|
socket/index.test.ts > Socket Server Index Integration > Validation and Utils > should validate workflow operations:
apps/sim/socket/index.test.ts#L308
AssertionError: expected [Function] to not throw an error but '[\n {\n "code": "invalid_union",\…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"code\": \"invalid_union\",
\"unionErrors\": [
{
\"issues\": [
{
\"received\": \"add\",
\"code\": \"invalid_enum_value\",
\"options\": [
\"update-position\",
\"update-name\",
\"toggle-enabled\",
\"update-parent\",
\"update-wide\",
\"update-advanced-mode\",
\"update-trigger-mode\",
\"toggle-handles\"
],
\"path\": [
\"operation\"
],
\"message\": \"Invalid enum value. Expected 'update-position' | 'update-name' | 'toggle-enabled' | 'update-parent' | 'update-wide' | 'update-advanced-mode' | 'update-trigger-mode' | 'toggle-handles', received 'add'\"
}
],
\"name\": \"ZodError\"
},
{
\"issues\": [
{
\"received\": \"add\",
\"code\": \"invalid_literal\",
\"expected\": \"batch-update-positions\",
\"path\": [
\"operation\"
],
\"message\": \"Invalid literal value, expected \\\"batch-update-positions\\\"\"
},
{
\"received\": \"block\",
\"code\": \"invalid_literal\",
\"expected\": \"blocks\",
\"path\": [
\"target\"
],
\"message\": \"Invalid literal value, expected \\\"blocks\\\"\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"array\",
\"received\": \"undefined\",
\"path\": [
\"payload\",
\"updates\"
],
\"message\": \"Required\"
}
],
\"name\": \"ZodError\"
},
{
\"issues\": [
{
\"received\": \"add\",
\"code\": \"invalid_literal\",
\"expected\": \"batch-add-blocks\",
\"path\": [
\"operation\"
],
\"message\": \"Invalid literal value, expected \\\"batch-add-blocks\\\"\"
},
{
\"received\": \"block\",
\"code\": \"invalid_literal\",
\"expected\": \"blocks\",
\"path\": [
\"target\"
],
\"message\": \"Invalid literal value, expected \\\"blocks\\\"\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"array\",
\"received\": \"undefined\",
\"path\": [
\"payload\",
\"blocks\"
],
\"message\": \"Required\"
}
],
\"name\": \"ZodError\"
},
{
\"issues\": [
{
\"received\": \"add\",
\"code\": \"invalid_literal\",
\"expected\": \"batch-remove-blocks\",
\"path\": [
\"operation\"
],
\"message\": \"Invalid literal value, expected \\\"batch-remove-blocks\\\"\"
},
{
\"received\": \"block\",
\"code\": \"invalid_literal\",
\"expected\": \"blocks\",
\"path\": [
\"target\"
],
\"message\": \"Invalid literal value, expected \\\"blocks\\\"\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"array\",
\"received\": \"undefined\",
\"path\": [
\"payload\",
\"ids\"
],
\"message\": \"Required\"
}
],
\"name\": \"ZodError\"
},
{
\"issues\": [
{
\"received\": \"block\",
\"code\": \"invalid_literal\",
\"expected\": \"edge\",
\"path\": [
\"target\"
],
\"message\":
|
|
Test and Build / Test and Build
Skipping sticky disk commit due to previous step failures
|
|
Test and Build / Test and Build
Found 2 failed/cancelled steps in previous workflow steps
|