Skip to content

ROX-12886: improve public API error messages for better UX#2417

Merged
johannes94 merged 4 commits intomainfrom
jmalsam/improve-public-api-errors
Sep 1, 2025
Merged

ROX-12886: improve public API error messages for better UX#2417
johannes94 merged 4 commits intomainfrom
jmalsam/improve-public-api-errors

Conversation

@johannes94
Copy link
Copy Markdown
Contributor

This change improves error handling across public API endpoints to provide more user-friendly error messages that UIs can display directly to users.

Key improvements:

  • Replace regex patterns in central name validation with human-readable text
  • Improve cloud provider/region validation error messages with clearer formatting
  • Enhance search parameter validation messages

Before: "name does not match ^a-z?$"
After: "name must use lowercase letters, numbers, and hyphens only (max 32 characters)"

This ensures UI teams can display error messages directly without additional processing or translation.

@johannes94
Copy link
Copy Markdown
Contributor Author

/retest

@johannes94 johannes94 changed the title Improve public API error messages for better UX ROX-12886: improve public API error messages for better UX Aug 28, 2025
johannes94 and others added 2 commits August 28, 2025 14:08
This change improves error handling across public API endpoints to provide
more user-friendly error messages that UIs can display directly to users.

Key improvements:
- Replace regex patterns in central name validation with human-readable text
- Improve cloud provider/region validation error messages with clearer formatting
- Enhance search parameter validation messages

Before: "name does not match ^[a-z]([-a-z0-9]*[a-z0-9])?$"
After: "name must use lowercase letters, numbers, and hyphens only (max 32 characters)"

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Update test assertions to match the new user-friendly error messages:
- Region validation error message format
- Instance type validation error message format

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@johannes94 johannes94 force-pushed the jmalsam/improve-public-api-errors branch from edf0ed9 to 350a17c Compare August 28, 2025 12:08
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Aug 28, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johannes94, kurlov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@johannes94
Copy link
Copy Markdown
Contributor Author

/retest

1 similar comment
@johannes94
Copy link
Copy Markdown
Contributor Author

/retest

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Aug 29, 2025

New changes are detected. LGTM label has been removed.

@johannes94
Copy link
Copy Markdown
Contributor Author

/retest

@johannes94
Copy link
Copy Markdown
Contributor Author

/retest

Appears to be a flake with FS not recognizing the new GitopsConfig.

@johannes94 johannes94 force-pushed the jmalsam/improve-public-api-errors branch from a344141 to 775bd40 Compare September 1, 2025 12:44
@johannes94 johannes94 merged commit bf1f9d9 into main Sep 1, 2025
15 checks passed
@johannes94 johannes94 deleted the jmalsam/improve-public-api-errors branch September 1, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants