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 recurring deleted labware bug #2299

Merged
merged 1 commit into from
Sep 18, 2018

Conversation

IanLondon
Copy link
Contributor

@IanLondon IanLondon commented Sep 17, 2018

overview

Fix our recurring deleting labware bug #1406 #1614 ...once and for all?

The problem is the worst when you delete a labware that one or more steps are using, in edge it whitescreens.

At least this will have Flow ensure that accessing labware by id will be safe, and not whitescreen due to TypeError: ___ is undefined.

changelog

  • make labware access by id always maybe typed (?Labware) so flow ensures safe access

review requests

  • Code review -- still sane?
  • Test PD, deleted labware experience isn't fantastic, but at least it no longer whitescreens.

The UI won't whitescreen with this PR, but it'll be a little weird. #2161 will address the UI issues left in place by this PR.

make labware access by id always maybe typed (?Labware) so flow ensures safe access
@IanLondon IanLondon added ready for review fix PR fixes a bug protocol designer Affects the `protocol-designer` project labels Sep 17, 2018
@IanLondon IanLondon self-assigned this Sep 18, 2018
Copy link
Contributor

@howisthisnamenottakenyet howisthisnamenottakenyet left a comment

Choose a reason for hiding this comment

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

Did not get a white screen!

Copy link
Contributor

@b-cooper b-cooper left a comment

Choose a reason for hiding this comment

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

🍨

@IanLondon IanLondon merged commit ebb44e1 into edge Sep 18, 2018
@IanLondon IanLondon deleted the pd_safe-labware-access-if-deleted branch September 18, 2018 16:47
@IanLondon IanLondon mentioned this pull request Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix PR fixes a bug protocol designer Affects the `protocol-designer` project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants