-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Improve SOR error handling #178266
Copy link
Copy link
Open
Labels
Feature:Saved ObjectsTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//enhancementNew value added to drive a business resultNew value added to drive a business resulttechnical debtImprovement of the software architecture and operational architectureImprovement of the software architecture and operational architecture
Metadata
Metadata
Assignees
Labels
Feature:Saved ObjectsTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//enhancementNew value added to drive a business resultNew value added to drive a business resulttechnical debtImprovement of the software architecture and operational architectureImprovement of the software architecture and operational architecture
Type
Fields
Give feedbackNo fields configured for issues without a type.
The way errors are handled in the SOR depends on the API type, the error in question, and often, conditional logic
This makes it difficult for teams wanting to build features that rely heavily on an error status code and expect a response format to be:
{ saved_objects: [{statusCode: 404, error: 'whatever', ... }]}but get a response containing a Boom error:
We need to find some way to improve error handling to make it more intuitive for consumers to build features around these and to clean up code.