Skip to content

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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

SiobhanBaynes
Copy link
Contributor

@SiobhanBaynes SiobhanBaynes commented Apr 28, 2025

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

  • Use deployment status or step status to determine if an error has occurred.
  • Update CHANGELOG.md

@github-actions github-actions bot added the external PR from an external contributor label Apr 28, 2025
Copy link

github-actions bot commented Apr 28, 2025

Unit Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit a6c04b4.

♻️ This comment has been updated with latest results.

@SiobhanBaynes SiobhanBaynes marked this pull request as ready for review April 28, 2025 14:36
Copy link
Member

@marrobi marrobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, works.

@marrobi marrobi requested review from ashis-kar91 and martinpeck May 1, 2025 06:51
@marrobi marrobi requested a review from Copilot May 8, 2025 07:14
Copy link
Contributor

@Copilot Copilot AI left a 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 {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external PR from an external contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some error messages not displayed in side panel
3 participants