-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[editor] Debounced Error Handling for Config Name and Description (#728)
# [editor] Debounced Error Handling for Config Name and Description `debounced` callbacks won't propagate thrown errors so we should use an `onError` callback to handle those. This PR handles them for updating config name and description. ## Testing: - Update /set_name endpoint to return error: ``` return HttpResponseWithAIConfig( # message=f"Failed to set name (TEST)", code=500, aiconfig=None, ).to_flask_format() ``` - Update /set_description endpoint to return error: ``` return HttpResponseWithAIConfig( # message=f"Failed to set description (TEST)", code=500, aiconfig=None, ).to_flask_format() ``` See notifications: https://github.com/lastmile-ai/aiconfig/assets/5060851/b1299566-ad16-4d8a-ad91-702d0b163393 --- Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/728). * __->__ #728 * #727 * #726 * #725
- Loading branch information
Showing
1 changed file
with
103 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters