Skip to content

Comments

Handle Galley errors in federation RPCs#1928

Merged
pcapriotti merged 4 commits intodevelopfrom
pcapriotti/galley-federation-errors
Nov 17, 2021
Merged

Handle Galley errors in federation RPCs#1928
pcapriotti merged 4 commits intodevelopfrom
pcapriotti/galley-federation-errors

Conversation

@pcapriotti
Copy link
Contributor

Errors when leaving a conversation are now correctly handled instead of resulting in a generic federation error.

Tracked by https://wearezeta.atlassian.net/browse/FS-40.

Checklist

  • The PR Title explains the impact of the change.
  • The PR description provides context as to why the change should occur and what the code contributes to that effect. This could also be a link to a JIRA ticket or a Github issue, if there is one.
  • changelog.d contains the following bits of information:
    • A file with the changelog entry in one or more suitable sub-sections. The sub-sections are marked by directories inside changelog.d.

@pcapriotti pcapriotti changed the base branch from develop to pcapriotti/galley-polysemy-cleanup November 16, 2021 07:22
Base automatically changed from pcapriotti/galley-polysemy-cleanup to develop November 16, 2021 13:14
@pcapriotti pcapriotti force-pushed the pcapriotti/galley-federation-errors branch 2 times, most recently from c585f86 to c8cc1dd Compare November 17, 2021 08:05
@pcapriotti pcapriotti marked this pull request as ready for review November 17, 2021 08:05
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't the last part of the test description be about being denied instead of non-existent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks!

Return errors as part of the response of the leave-conversation RPC.
This commit also simplifies the response type considerably, by limiting
constructors to one per possible error type. It also replaces error
responses in the public API handler with `CanThrow`.
@pcapriotti pcapriotti force-pushed the pcapriotti/galley-federation-errors branch from c8cc1dd to b663778 Compare November 17, 2021 12:24
@pcapriotti pcapriotti merged commit 5aad6f6 into develop Nov 17, 2021
@pcapriotti pcapriotti deleted the pcapriotti/galley-federation-errors branch November 17, 2021 15:14
@smatting smatting mentioned this pull request Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants