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

fix(protocol-designer): fix whitescreen after deleting labware #17586

Merged
merged 3 commits into from
Feb 25, 2025

Conversation

ncdiehl11
Copy link
Collaborator

@ncdiehl11 ncdiehl11 commented Feb 25, 2025

Overview

This PR fixes a whitescreen produced by the StepSummary component for mix steps whose target labware was deleted. There was a missing optional chaining when attempting to access the labware definition's ordering. If the labware entity is null, we should not check the definition.

TODO: confirm with design whether to show StepSummary at all if some data is missing

Closes RQA-3916
Closes AUTH-1377

Test Plan and Hands on Testing

  • create or upload a protocol that utilizes a mix step on a certain labware
  • delete that labware and navigate back to timeline
  • hover that mix step and verify that no whitescreen occurs

before:

Screen.Recording.2025-02-25.at.6.23.08.PM.mov

after:

Screen.Recording.2025-02-25.at.6.21.43.PM.mov

Changelog

  • null check labware definition in mix case of StepSummary

Review requests

  • see test plan

Risk assessment

low

This PR fixes a whitescreen produced by the `StepSummary` component for mix steps whose target labware was deleted. There was a missing optional chaining when attempting to access the labware definition's ordering. If the labware entity is null, we should not check the definition.

Closes RQA-3916
@ncdiehl11 ncdiehl11 requested review from koji and syao1226 February 25, 2025 23:23
@ncdiehl11 ncdiehl11 self-assigned this Feb 25, 2025
@ncdiehl11 ncdiehl11 marked this pull request as ready for review February 25, 2025 23:27
@ncdiehl11 ncdiehl11 requested a review from a team as a code owner February 25, 2025 23:27
@ncdiehl11 ncdiehl11 merged commit 0f723f3 into chore_release-pd-8.4.3 Feb 25, 2025
14 checks passed
@ncdiehl11 ncdiehl11 deleted the fix_pd-whitescreen branch February 25, 2025 23:57
alexjoel42 pushed a commit that referenced this pull request Feb 27, 2025
This PR fixes a whitescreen produced by the `StepSummary` component for
mix steps whose target labware was deleted. There was a missing optional
chaining when attempting to access the labware definition's ordering. If
the labware entity is null, we should not check the definition.

Closes RQA-3916
Closes AUTH-1377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants