Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

misc improvements to graphqlbackend#63943

Merged
sqs merged 3 commits into
mainfrom
sqs/misc-gql
Jul 19, 2024
Merged

misc improvements to graphqlbackend#63943
sqs merged 3 commits into
mainfrom
sqs/misc-gql

Conversation

@sqs

@sqs sqs commented Jul 19, 2024

Copy link
Copy Markdown
Member
  • skip graphqlbackend tests that use the DB when using go test -short
  • fix race condition in (settingsResolver).Author
  • fix OrgMembers.GetByOrgIDAndUserID mocks: The actual function returns a non-nil error (database.ErrOrgMemberNotFound type) when the user is not an org member. Our mocks should do the same for correctness.

Test plan

CI

The actual function returns a non-nil error (`database.ErrOrgMemberNotFound` type) when the user is not an org member. Our mocks should do the same for correctness.
@sqs sqs requested a review from a team July 19, 2024 09:28
@cla-bot cla-bot Bot added the cla-signed label Jul 19, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this compile? I don't see subject in the scope here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh oops, will fix. took from another wip branch.

@sqs sqs enabled auto-merge (squash) July 19, 2024 09:34
@sqs sqs merged commit 0e958d1 into main Jul 19, 2024
@sqs sqs deleted the sqs/misc-gql branch July 19, 2024 09:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants