Descriptive validation error messages should be shown on Workspace create form
MR: Add graphql validation error message on create ... (!184854 - merged)
Description
I found a bug in the workspaces frontend code, where we are incorrectly swallowing the specific error message returned from GraphQL, and just showing a generic default message. This is a usability issue, if the backend is properly returning useful validation errors, the frontend should not ignore them.
We are ignoring the error that we got back in the graphql payload.
If you replace the original line (commented) to show the actual error.message it works:
// this.error = i18n.createWorkspaceFailedMessage;
this.error = error.message;
However it is not showing the field name, this may be an error in the graphql mutation not properly obtaining the full ActiveRecord validation message.
Expected
(also with field name prepended)
Actual
Acceptance Criteria
-
Error handling code is updated to display specific GraphQL error messages -
Error messages are displayed clearly in the UI -
Existing error handling functionality remains intact for cases where no specific message is available -
Error messages follow the format: "[Field Name] - [Error Message]"
Technical Requirements
TODO: Fill out or delete (optional) [If applicable, please list out any technical requirements for this feature/enhancement.]
Design Requirements
TODO: Fill out or delete (optional) [If applicable, please provide a link to the design specifications for this feature/enhancement.]
Impact Assessment
- Users receive clear, specific feedback about what went wrong
- Users can immediately identify and fix the exact issue
- Reduced friction in workspace creation process
- Better user experience and efficiency
User Story
TODO: Fill out or delete (optional) [Provide a user story to illustrate the use case for this feature/enhancement. Include examples to help communicate the intended functionality.]

