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(app): clear lw calibration state if top level home is called #4703

Merged
merged 2 commits into from
Jan 8, 2020

Conversation

b-cooper
Copy link
Contributor

@b-cooper b-cooper commented Jan 8, 2020

overview

This should fix a behavior where a user starts labware calibration and exits the flow to home the robot from the robots tab, which breaks their calibration experience when they return.

@b-cooper b-cooper requested a review from mcous January 8, 2020 16:22
@codecov
Copy link

codecov bot commented Jan 8, 2020

Codecov Report

Merging #4703 into edge will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             edge    #4703      +/-   ##
==========================================
+ Coverage   58.07%   58.07%   +<.01%     
==========================================
  Files         952      952              
  Lines       26233    26233              
==========================================
+ Hits        15234    15235       +1     
+ Misses      10999    10998       -1
Impacted Files Coverage Δ
app/src/robot/reducer/calibration.js 100% <ø> (+1%) ⬆️

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 05dcc4c...8d25fc5. Read the comment docs.

@@ -84,6 +84,7 @@ export default function calibrationReducer(
return INITIAL_STATE

// reset calibration state on robot home
case 'robotControls:HOME':
Copy link
Contributor

Choose a reason for hiding this comment

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

This constant is available as import { HOME } from '../../robot-controls'. Also, could you add tests for this behavior?

@b-cooper b-cooper merged commit 8fe7120 into edge Jan 8, 2020
@b-cooper b-cooper deleted the app_clear-lw-cal-state-on-home branch January 8, 2020 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants