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 on deleting blowout labware #2341

Merged
merged 1 commit into from
Sep 21, 2018

Conversation

IanLondon
Copy link
Contributor

overview

Addresses #2161 but I can't find a clean way to totally close it - added a comment to handleFormChange and commented on that ticket with more info.

This PR makes it so labware dropdown shows up as blank instead of just showing the first thing in the list, when the previously selected labware was deleted.

This PR also fixes a bug, for which this PR serves as the ticket:

WHITESCREEN BUG:

  • Create a Distribute step that blows out to a trash-box labware on the deck
  • Delete that trash-box
  • Whitescreen!

changelog

  • fix unticketed bug: setting blowout to a trash-box in a step and deleting the trash box caused whitescreen
    *make labware dropdown blank when nonexistent labware selected

review requests

  • No whitescreen on deleting labware, even in blowout
  • Even if it's not all the way to where we wanna be, is the labware field going blank still a positive improvement, better than leaving as is?

* fix unticketed bug: setting blowout to a trash-box in a step and deleting the trash box caused
whitescreen
*make labware dropdown blank when nonexistent labware selected
@IanLondon IanLondon added ready for review fix PR fixes a bug protocol designer Affects the `protocol-designer` project labels Sep 20, 2018
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.

💴

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.

Labware going blank is good! :D

@codecov
Copy link

codecov bot commented Sep 21, 2018

Codecov Report

Merging #2341 into edge will increase coverage by <.01%.
The diff coverage is 22.22%.

Impacted file tree graph

@@           Coverage Diff            @@
##           edge    #2341      +/-   ##
========================================
+ Coverage    30%   30.01%   +<.01%     
========================================
  Files       508      508              
  Lines      8121     8126       +5     
========================================
+ Hits       2437     2439       +2     
- Misses     5684     5687       +3
Impacted Files Coverage Δ
...-designer/src/steplist/actions/handleFormChange.js 1.69% <ø> (ø) ⬆️
...designer/src/components/StepEditForm/formFields.js 0% <0%> (ø) ⬆️
protocol-designer/src/step-generation/blowout.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f23a5a6...55828d7. Read the comment docs.

@IanLondon IanLondon merged commit 44196c6 into edge Sep 21, 2018
@IanLondon IanLondon deleted the pd_fix-deleted-labware-of-blowout-whitescreen branch September 21, 2018 14:58
b-cooper added a commit that referenced this pull request Sep 26, 2018
* fix(app): Open external links in browser instead of app window (#2327)

* feat(api): Remove deck calibration from reset options (#2330)

Remove deck calibration from factory reset options, as deck calibration reset should not be done
outside of the context of recalibration

* docs(contributing): Ask Windows users to set core.autocrlf=input (#2332)

Setting core.autocrlf to something that inserts carriage returns on windows means that API pushes to
robots from windows will have carriage returns in the scripts in api/opentrons/resources, which
prevents the robot from booting.

Closes #2305

* fix(api): Update definitions for tuberacks (#2317)

* fix(api): Update definitions for 15ml tuberack, 50ml tuberack, and 15/50ml tuberack to match actual

Closes #2290

* Modify definitions based on practical test

* feat(app): Enable autoupdate on Linux by switching to AppImage builds (#2329)

Closes #2303

* chore(chore): add exception in gitattributes for our hex files (#2339)

* fix(protocol-designer): fix whitescreen on deleting blowout labware (#2341)

* fix unticketed bug: setting blowout to a trash-box in a step and deleting the trash box caused
whitescreen
*make labware dropdown blank when nonexistent labware selected

* fix(api): Update the aluminum block definitions to match drawings (#2342)

* fix(api): Update the aluminum block definitions to match drawings and experiments
* Rename definition in shared-data to match rename in default_containers.json and fix z height
* Closes #2292

* chore(release): 3.4.0 (#2338)

* fix(protocol-designer): fix tiprack diagram only displaying right (#2340)

Fix a small bug where the tiprack diagram in the new file modal would duplicate the diagram of the
selected right pipette tiprack instead of showing both selections.

* feat(api): add module firmware update endpoint (#2173)

Closes #1654 
Adds firmware update api methods and update server functions (for modules with old as well as new bootloader)
Adds a udev rule for new bootloader
Adds tests for modules and update_server endpoint

* feat(protocol-designer): add "app build date" field to PD saved files (#2350)

* chore(api): Cleanup unused api root level files (#2336)

There were some leftovers from days of old: we don't use pip or anaconda or PyInstaller anymore.

* refactor(api): invert control of system and server (#2318)

Closes #2185
Separates out the previously entangled server and system functions so that opentrons.main handles system configuration while server.main only configures and runs the server. Entrypoint is switched from opentrons.server.main to opentrons.main

* feat(api): Add hardware_control submodule (#2349)

The hardware_control submodule is the controller of the robot's hardware. Its API can move the robot at a level of abstraction that portrays the robot as a whole, not including the labware. In this PR, the module is a stub, and not used by default

Closes #2232

* fixup: More verbose names for file and thread locks
* fixup: use functools.wraps in log_call decorator

* ci(codecov): Fix uploading of python coverage (#2360)

* fix(protocol-designer): tweak analytics copy for accuracy (#2366)

Update the copy in the analytics disclaimer to accurately portray our data collection in beta.
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.

3 participants