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(api): Fix RPC reporting wrong models for v1.3 pipettes #1691

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

mcous
Copy link
Contributor

@mcous mcous commented Jun 13, 2018

overview

This PR also serving as the bug ticket.

As reported by @HenryOpentrons, the app was reporting that an incorrect pipette was attached in the Tip Probe screen even if the correct pipette was attached. Upon further investigation, this was only happening with v1.3 pipettes, and was due to the fact that the RPC API was always reporting pipettes used in the protocol as v1 pipettes, regardless of what was attached to the robot.

changelog

  • fix(api): Fix RPC reporting wrong models for v1.3 pipettes
    • Removed redundant is_simulating check for retrieving correct model string of pipettes created from config
    • Added attached pipette caching call prior to RPC protocol simulation to ensure proper pipette models were picked up

review requests

I've tested this on Sunset with a v1.3 P50. We need to ensure:

  • Virtual smoothie doesn't crap out completely with these changes
  • Real robot with v1 pipette does not show "incorrect pipette attached" warning
  • Real robot with v1.3 pipette does not show "incorrect pipette attached" warning

@mcous mcous added bug api Affects the `api` project ready for review fix PR fixes a bug labels Jun 13, 2018
@mcous mcous requested a review from andySigler June 13, 2018 19:01
@mcous mcous requested review from btmorr and Laura-Danielle June 13, 2018 19:01
@codecov
Copy link

codecov bot commented Jun 13, 2018

Codecov Report

Merging #1691 into edge will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             edge    #1691   +/-   ##
=======================================
  Coverage   34.68%   34.68%           
=======================================
  Files         342      342           
  Lines        5576     5576           
=======================================
  Hits         1934     1934           
  Misses       3642     3642

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 cad5e74...3ea0e37. Read the comment docs.

Copy link
Contributor

@btmorr btmorr left a comment

Choose a reason for hiding this comment

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

⚡️

@mcous mcous merged commit e302382 into edge Jun 13, 2018
@mcous mcous deleted the api_fix-incorrect-rpc-pipette branch June 13, 2018 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Affects the `api` project bug fix PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants