-
Notifications
You must be signed in to change notification settings - Fork 162
Add more error mesage parsing #4503
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
base: main
Are you sure you want to change the base?
Add more error mesage parsing #4503
Conversation
Unit Test Results0 tests 0 ✅ 0s ⏱️ Results for commit a6c04b4. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates error handling by replacing string‐based error message parsing with status-based error detection for improved reliability.
- Update error detection by incorporating deployment or step status checks.
- Refactor components ResourceOperationsList, ResourceOperationStepsList, and ResourceOperationListItem to use the new error status detection.
- Update CHANGELOG.md and increment package version.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
ui/app/src/components/shared/ResourceOperationsList.tsx | Uses deployment status via the imported failedStates to determine error display. |
ui/app/src/components/shared/ResourceOperationStepsList.tsx | Replaces local error state management with a centralized state to toggle error panel display. |
ui/app/src/components/shared/ResourceOperationListItem.tsx | Introduces an optional isError prop instead of parsing error messages. |
ui/app/src/components/shared/ResourceHistoryListItem.tsx | Renames component interface and component but the file name wasn’t updated to match. |
ui/app/package.json | Bumps version from 0.8.3 to 0.8.4. |
CHANGELOG.md | Adds a new changelog entry for error message display changes. |
Comments suppressed due to low confidence (1)
ui/app/src/components/shared/ResourceHistoryListItem.tsx:3
- The component is renamed to ResourceOperationListItem, but the file is still named ResourceHistoryListItem.tsx. Consider renaming the file to match the component name for consistency.
interface ResourceOperationListItemProps {
Resolves #4502
What is being addressed
Change the way we detect whether errors were returned. Instead of parsing the error message we now use the deployment status for enhanced reliability.
How is this addressed