Skip to content
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

feat(frontend): add error handling for trace section #2282

Merged
merged 1 commit into from Mar 31, 2023

Conversation

jorgeepc
Copy link
Contributor

@jorgeepc jorgeepc commented Mar 31, 2023

This PR includes the error handling improvements related to the Test Run Trace section.

Changes

  • Error handling improvements for Test Run Trace section.

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Loom

https://www.loom.com/share/daa917492ce54142a22e08b3a5d5a59d

@jorgeepc jorgeepc self-assigned this Mar 31, 2023
@jorgeepc jorgeepc force-pushed the 2148-add-trace-error-handling branch from f67da0e to fcc5c1f Compare March 31, 2023 17:08
@jorgeepc jorgeepc force-pushed the 2148-add-trace-error-handling branch from fcc5c1f to 278f6c1 Compare March 31, 2023 20:04
@jorgeepc jorgeepc marked this pull request as ready for review March 31, 2023 20:29
Copy link
Collaborator

@xoscar xoscar left a comment

Choose a reason for hiding this comment

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

GJ my dude, left a small non-blocking question

</>
);

const failedHeader = (
Copy link
Collaborator

Choose a reason for hiding this comment

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

If these two blocks don't require anything from the props or local state and also just one of them is rendered at one time, can we create them outside of the rendering cycle?


const TestRunService = () => ({
getTestRunEventsByStage(events: TestRunEvent[], stage: TestRunStage) {
return events.filter(event => event.stage === stage);
},

getTestRunEventsWithLastPolling(events: TestRunEvent[]) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like this, that we are already considering that we can have multiple polling events. GJ!

@jorgeepc jorgeepc merged commit a5d365c into main Mar 31, 2023
27 checks passed
@jorgeepc jorgeepc deleted the 2148-add-trace-error-handling branch March 31, 2023 21:47
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.

[Error Handling] - Trace section improvements
2 participants