Skip to content

feat: member role resource assignments #17883

feat: member role resource assignments

feat: member role resource assignments #17883

Triggered via pull request January 21, 2025 10:27
Status Failure
Total duration 20m 0s
Billable time 24m
Artifacts 9

pr.yaml

on: pull_request
Matrix: build / build-and-dockerize
graphql-breaking-changes  /  search-token
0s
graphql-breaking-changes / search-token
db-types  /  diff
1m 23s
db-types / diff
test  /  db-migrations
1m 40s
test / db-migrations
test  /  unit
2m 20s
test / unit
code-style  /  eslint-and-prettier
5m 36s
code-style / eslint-and-prettier
typescript  /  typecheck
2m 14s
typescript / typecheck
website-preview  /  deployment
9s
website-preview / deployment
storybook-preview  /  deployment
3m 9s
storybook-preview / deployment
release-candidate  /  snapshot
release-candidate / snapshot
Matrix: static-analysis / analyze
build  /  publish multiarch manifest
49s
build / publish multiarch manifest
Matrix: alpha / cli-test
alpha  /  Extract CLI version
0s
alpha / Extract CLI version
graphql-breaking-changes  /  check
8s
graphql-breaking-changes / check
Matrix: test / integration
alpha  /  ...  /  Build CLI Docker Image
2m 48s
alpha / publish_docker / Build CLI Docker Image
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 37 warnings
db-types / diff
Process completed with exit code 1.
typescript / typecheck
Property 'resources' is missing in type '{ organizationSlug: string; roleId: string; userId: string; }' but required in type 'AssignMemberRoleInput'.
typescript / typecheck
Process completed with exit code 2.
tests/api/organization/members.spec.ts > cannot delete a role with members: integration-tests/testkit/graphql.ts#L68
Error: Expected GraphQL response to have no errors, but got 1 errors: Variable "$input" got invalid value { organizationSlug: "violetexpertsrushdaily", userId: "d3802405-ad60-4e6b-864b-187649d8c5ed", roleId: "3674ee3d-c1a8-4611-85a5-db291fbff3a9" }; Field "resources" of required type "MemberResourceAssignmentInput!" was not provided. endpoint: http://localhost:8082/graphql query: mutation assignMemberRole($input: AssignMemberRoleInput!) { assignMemberRole(input: $input) { ok { updatedMember { id } } error { message } } } body: { "errors": [ { "message": "Variable \"$input\" got invalid value { organizationSlug: \"violetexpertsrushdaily\", userId: \"d3802405-ad60-4e6b-864b-187649d8c5ed\", roleId: \"3674ee3d-c1a8-4611-85a5-db291fbff3a9\" }; Field \"resources\" of required type \"MemberResourceAssignmentInput!\" was not provided.", "locations": [ { "line": 1, "column": 27 } ] } ] } request-id: heU13mxhTG2Qu6LLA1PbLQ/0000000283 ❯ Object.expectNoGraphQLErrors testkit/graphql.ts:68:15 ❯ testkit/seed.ts:821:33 ❯ assignMemberRole testkit/seed.ts:814:54 ❯ tests/api/organization/members.spec.ts:85:3
tests/api/policy/policy-access.spec.ts > Policy Access > Project > should successfully update Project.schemaPolicy if the user has access to SETTINGS: integration-tests/testkit/graphql.ts#L68
Error: Expected GraphQL response to have no errors, but got 1 errors: Variable "$input" got invalid value { organizationSlug: "quietdeersinknoisily", userId: "f508c46d-d97a-48fb-99f4-55e9efdda424", roleId: "f2705ad8-4031-48bc-82ab-ac8990bea63f" }; Field "resources" of required type "MemberResourceAssignmentInput!" was not provided. endpoint: http://localhost:8082/graphql query: mutation assignMemberRole($input: AssignMemberRoleInput!) { assignMemberRole(input: $input) { ok { updatedMember { id } } error { message } } } body: { "errors": [ { "message": "Variable \"$input\" got invalid value { organizationSlug: \"quietdeersinknoisily\", userId: \"f508c46d-d97a-48fb-99f4-55e9efdda424\", roleId: \"f2705ad8-4031-48bc-82ab-ac8990bea63f\" }; Field \"resources\" of required type \"MemberResourceAssignmentInput!\" was not provided.", "locations": [ { "line": 1, "column": 27 } ] } ] } request-id: heU13mxhTG2Qu6LLA1PbLQ/0000000168 ❯ Object.expectNoGraphQLErrors testkit/graphql.ts:68:15 ❯ testkit/seed.ts:821:33 ❯ assignMemberRole testkit/seed.ts:814:54 ❯ tests/api/policy/policy-access.spec.ts:64:9
tests/api/policy/policy-access.spec.ts > Policy Access > Organization > should successfully update Organization.schemaPolicy if the user has access to SETTINGS: integration-tests/testkit/graphql.ts#L68
Error: Expected GraphQL response to have no errors, but got 1 errors: Variable "$input" got invalid value { organizationSlug: "gentlehotelstastedaily", userId: "336b7396-f586-4992-bd48-a0dc14cb1ee2", roleId: "4bf54f8f-19bf-44b6-acdd-66c24256d8ec" }; Field "resources" of required type "MemberResourceAssignmentInput!" was not provided. endpoint: http://localhost:8082/graphql query: mutation assignMemberRole($input: AssignMemberRoleInput!) { assignMemberRole(input: $input) { ok { updatedMember { id } } error { message } } } body: { "errors": [ { "message": "Variable \"$input\" got invalid value { organizationSlug: \"gentlehotelstastedaily\", userId: \"336b7396-f586-4992-bd48-a0dc14cb1ee2\", roleId: \"4bf54f8f-19bf-44b6-acdd-66c24256d8ec\" }; Field \"resources\" of required type \"MemberResourceAssignmentInput!\" was not provided.", "locations": [ { "line": 1, "column": 27 } ] } ] } request-id: heU13mxhTG2Qu6LLA1PbLQ/0000000178 ❯ Object.expectNoGraphQLErrors testkit/graphql.ts:68:15 ❯ testkit/seed.ts:821:33 ❯ assignMemberRole testkit/seed.ts:814:54 ❯ tests/api/policy/policy-access.spec.ts:195:9
test / integration (2)
Process completed with exit code 1.
test / integration (3)
The job was canceled because "_2" failed.
test / integration (3)
The operation was canceled.
test / integration (1)
The job was canceled because "_2" failed.
test / integration (1)
The operation was canceled.
alpha / npm / snapshot
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
alpha / npm / snapshot
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
alpha / npm / snapshot
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
alpha / npm / snapshot
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
alpha / npm / snapshot
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
static-analysis / analyze (javascript)
1 issue was detected with this workflow: Please specify an on.push hook to analyze and see code scanning alerts from the default branch on the Security tab.
static-analysis / analyze (javascript)
Unable to validate code scanning workflow: MissingPushHook
static-analysis / analyze (typescript)
1 issue was detected with this workflow: Please specify an on.push hook to analyze and see code scanning alerts from the default branch on the Security tab.
static-analysis / analyze (typescript)
Unable to validate code scanning workflow: MissingPushHook
alpha / cli-test (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
code-style / eslint-and-prettier: packages/web/app/src/components/organization/members/permission-selector.tsx#L125
Arbitrary value classname '-m-[1px]' should not start with a dash (-)
Variables should be defined before their use: docker/cli.dockerfile#L14
UndefinedVar: Usage of undefined variable '$IMAGE_DESCRIPTION' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Legacy key/value format with whitespace separator should not be used: docker/cli.dockerfile#L20
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Variables should be defined before their use: docker/cli.dockerfile#L21
UndefinedVar: Usage of undefined variable '$RELEASE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Legacy key/value format with whitespace separator should not be used: docker/cli.dockerfile#L21
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Variables should be defined before their use: docker/cli.dockerfile#L12
UndefinedVar: Usage of undefined variable '$IMAGE_TITLE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Variables should be defined before their use: docker/cli.dockerfile#L13
UndefinedVar: Usage of undefined variable '$RELEASE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Variables should be defined before their use: docker/services.dockerfile#L22
UndefinedVar: Usage of undefined variable '$PORT' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Variables should be defined before their use: docker/migrations.dockerfile#L12
UndefinedVar: Usage of undefined variable '$RELEASE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Variables should be defined before their use: docker/migrations.dockerfile#L15
UndefinedVar: Usage of undefined variable '$IMAGE_TITLE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Variables should be defined before their use: docker/services.dockerfile#L14
UndefinedVar: Usage of undefined variable '$IMAGE_DESCRIPTION' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Legacy key/value format with whitespace separator should not be used: docker/services.dockerfile#L20
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Variables should be defined before their use: docker/services.dockerfile#L21
UndefinedVar: Usage of undefined variable '$RELEASE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Variables should be defined before their use: docker/services.dockerfile#L12
UndefinedVar: Usage of undefined variable '$IMAGE_TITLE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Legacy key/value format with whitespace separator should not be used: docker/services.dockerfile#L21
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Legacy key/value format with whitespace separator should not be used: docker/migrations.dockerfile#L10
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Legacy key/value format with whitespace separator should not be used: docker/migrations.dockerfile#L12
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Variables should be defined before their use: docker/services.dockerfile#L12
UndefinedVar: Usage of undefined variable '$IMAGE_TITLE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Variables should be defined before their use: docker/services.dockerfile#L13
UndefinedVar: Usage of undefined variable '$RELEASE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Variables should be defined before their use: docker/migrations.dockerfile#L17
UndefinedVar: Usage of undefined variable '$IMAGE_DESCRIPTION' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Legacy key/value format with whitespace separator should not be used: docker/migrations.dockerfile#L10
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Variables should be defined before their use: docker/migrations.dockerfile#L12
UndefinedVar: Usage of undefined variable '$RELEASE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Variables should be defined before their use: docker/services.dockerfile#L21
UndefinedVar: Usage of undefined variable '$RELEASE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Variables should be defined before their use: docker/services.dockerfile#L22
UndefinedVar: Usage of undefined variable '$PORT' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Legacy key/value format with whitespace separator should not be used: docker/services.dockerfile#L22
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Legacy key/value format with whitespace separator should not be used: docker/migrations.dockerfile#L11
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Legacy key/value format with whitespace separator should not be used: docker/migrations.dockerfile#L12
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Artifacts

Produced during runtime
Name Size
graphql-hive~console~5V65AQ+13.dockerbuild
2.43 MB
graphql-hive~console~MPLTK6+13.dockerbuild
2.75 MB
graphql-hive~console~ZMEATP.dockerbuild
67.9 KB
hive-cli-darwin-arm64
42.1 MB
hive-cli-darwin-x64
42.8 MB
hive-cli-linux-arm
42.6 MB
hive-cli-linux-x64
47.5 MB
hive-cli-win-x64
37.7 MB
hive-cli-win-x86
35.1 MB