Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling2 #9188

Merged
304 commits merged into from
Aug 26, 2024
Merged

Error handling2 #9188

304 commits merged into from
Aug 26, 2024

Conversation

koenvanderveen
Copy link
Collaborator

No description provided.

tcp and others added 30 commits July 3, 2024 19:23
This PR introduces a significant change in how service responses are
handled on both the client and server sides.

**Server-side Enhancements (node/node.py)**
- Responses are now wrapped before being sent. If no exceptions are
  raised, responses are always wrapped in `SyftSuccess`.

**Client-side Enhancements (client/api.py)**
- Responses to service methods are unwrapped if the `unwrap_on_success`
  decorator is applied (default is True).
- Unwrapping involves retrieving the object returned by
  `SyftSuccess.unwrap_value()`, which corresponds to the original return
  value from the service method.

**Temporary**
- Introduced `UNWRAPPABLE_SERVICES_LIST`, a temporary list of services
  for which response unwrapping is applied. This list will be removed
  once all services (stashes) are migrated.

By not unwrapping on success, messages are returned to the user as
`SyftSuccess` (see notebooks).
…integrate-response

feat(syft_exc): change client and server side response handling
…base-stashes

feat(syft_exc): add implementation of BaseStash and BaseUIDStoreStash using the new types
…to refactor/syft-error-handling-user-dataset
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@koenvanderveen koenvanderveen closed this pull request by merging all changes into dev in 755a4db Aug 26, 2024
@koenvanderveen koenvanderveen deleted the error-handling2 branch August 26, 2024 18:30
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.

5 participants