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

feat(app): wire up module calibration to backend #13449

Merged
merged 14 commits into from
Sep 1, 2023

Conversation

shlokamin
Copy link
Member

@shlokamin shlokamin commented Sep 1, 2023

Overview

This PR wires up module cal to protocol engine.

closes RAUT-655

(also small copy fix) closes RQA-935

Changelog

  • Connect module calibration wizard to protocol engine

Risk assessment

Low

Comment on lines -172 to -173
return errorMessage != null ? (
<SimpleWizardBody
Copy link
Member Author

Choose a reason for hiding this comment

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

moved rendering the error to the orchestration component, rather than having each sub component have to worry about rendering error content

Comment on lines +67 to +69
const [createdAdapterId, setCreatedAdapterId] = React.useState<string | null>(
null
)
Copy link
Member Author

Choose a reason for hiding this comment

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

added this because when starting module cal, we need to provide the PE command the loaded adapter id

@shlokamin shlokamin marked this pull request as ready for review September 1, 2023 16:17
@shlokamin shlokamin requested a review from a team as a code owner September 1, 2023 16:17
@shlokamin shlokamin requested review from TamarZanzouri and removed request for a team September 1, 2023 16:17
@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

Merging #13449 (1a106c7) into chore_release-7.0.0 (f81ea96) will decrease coverage by 8.07%.
Report is 8 commits behind head on chore_release-7.0.0.
The diff coverage is 8.57%.

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                   @@
##           chore_release-7.0.0   #13449      +/-   ##
=======================================================
- Coverage                71.41%   63.34%   -8.07%     
=======================================================
  Files                     2432     1710     -722     
  Lines                    67907    32551   -35356     
  Branches                  7884     7925      +41     
=======================================================
- Hits                     48495    20621   -27874     
+ Misses                   17567    10080    -7487     
- Partials                  1845     1850       +5     
Flag Coverage Δ
api ?
app 69.07% <8.47%> (-0.13%) ⬇️
g-code-testing ?
hardware ?
hardware-testing ?
notify-server ?
ot3-gravimetric-test ?
protocol-designer 46.09% <0.00%> (-0.02%) ⬇️
robot-server ?
shared-data 73.89% <14.28%> (-0.15%) ⬇️
step-generation 87.18% <ø> (ø)
system-server ?
update-server ?
usb-bridge ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
app/src/molecules/WizardHeader/index.tsx 100.00% <ø> (ø)
app/src/organisms/GripperWizardFlows/index.tsx 2.27% <ø> (ø)
...pp/src/organisms/ModuleWizardFlows/AttachProbe.tsx 7.14% <0.00%> (-1.69%) ⬇️
...rc/organisms/ModuleWizardFlows/BeforeBeginning.tsx 4.00% <0.00%> (-0.17%) ⬇️
...p/src/organisms/ModuleWizardFlows/PlaceAdapter.tsx 5.55% <0.00%> (-2.78%) ⬇️
app/src/organisms/ModuleWizardFlows/index.tsx 2.29% <0.00%> (-0.18%) ⬇️
app/src/organisms/PipetteWizardFlows/index.tsx 1.63% <ø> (ø)
...p/src/organisms/RobotSettingsCalibration/index.tsx 51.19% <ø> (-1.14%) ⬇️
app/src/redux/config/constants.ts 100.00% <ø> (ø)
protocol-designer/src/step-forms/reducers/index.ts 54.62% <0.00%> (-0.47%) ⬇️
... and 5 more

... and 727 files with indirect coverage changes

@shlokamin shlokamin requested a review from b-cooper September 1, 2023 16:18
Comment on lines +1230 to 1237
const { moduleId, model, location } = command.params
if (moduleId == null) {
console.error(
`expected module ${model} in location ${location.slotName} to have an id, but id does not`
)
return acc
}
return {
Copy link
Member Author

Choose a reason for hiding this comment

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

added this change to PD cuz i updated the type of LoadModuleCreateCommand to have the module id be optional

return
}

const calibrationAdapterId = uuidv4()
Copy link
Member Author

Choose a reason for hiding this comment

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

generating a uuid for the calibration adapter and setting it to react state below so we can use this id when we emit a start module cal command

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.

🎏

@b-cooper b-cooper merged commit cbccf7d into chore_release-7.0.0 Sep 1, 2023
@b-cooper b-cooper deleted the app-wire-up-module-cal] branch September 1, 2023 21:44
mjhuff pushed a commit that referenced this pull request Sep 5, 2023
TamarZanzouri pushed a commit that referenced this pull request Sep 13, 2023
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.

3 participants