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(step-generation, shared-data): add waste chute commands to types & atomic commands #13916

Merged
merged 7 commits into from
Nov 6, 2023

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Nov 3, 2023

closes RAUT-849 and RAUT-766

Overview

This PR lays the ground work for wiring up the waste chute commands in Step-generation.

  1. add moveToAddressableArea command type to schemaV8 commands, as well as dispenseInPlace
  2. create atomic commands for moveToAddressableArea, dispenseInPlace, dropTipInPlace, and blowoutInPlace
  3. creates a util that puts the array of commands together for waste chute: wasteChuteCommandsUtil

nothing is wired up yet!

Test Plan

Nothing is wired up so just look through the types and the step-generation atomic commands and make sure things look right and the params match.

See here for params: https://opentrons.atlassian.net/wiki/spaces/RPDO/pages/3862200335/Deck+Configuration+Addressable+Areas+PE+Command+Shapes

Changelog

  • add run time command and create command types for the 2 commands
  • create atomic commands ( moveToAddressableArea, dispenseInPlace, dropTipInPlace, and blowoutInPlace) and write tests
  • create wasteChuteCommandsUtil util and write test
  • create new error creator: addtionalEquipmentDoesNotExist
  • add some ToDos for updating robot state

Review requests

see test plan

Risk assessment

low

@jerader jerader requested a review from a team as a code owner November 3, 2023 20:45
@jerader jerader requested a review from a team November 3, 2023 20:45
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Merging #13916 (b598b36) into edge (f7536ea) will decrease coverage by 0.12%.
Report is 12 commits behind head on edge.
The diff coverage is 62.50%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #13916      +/-   ##
==========================================
- Coverage   70.84%   70.73%   -0.12%     
==========================================
  Files        2504     1631     -873     
  Lines       70452    54112   -16340     
  Branches     8609     3815    -4794     
==========================================
- Hits        49913    38275   -11638     
+ Misses      18441    15163    -3278     
+ Partials     2098      674    -1424     
Flag Coverage Δ
app 43.04% <ø> (-25.84%) ⬇️
protocol-designer 45.63% <62.50%> (+0.07%) ⬆️
shared-data 72.98% <ø> (ø)
step-generation 84.95% <ø> (ø)

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

Files Coverage Δ
...tocol-designer/src/components/FileSidebar/index.ts 0.00% <ø> (ø)
step-generation/src/errorCreators.ts 90.24% <ø> (ø)
...neration/src/getNextRobotStateAndWarnings/index.ts 71.83% <ø> (ø)
step-generation/src/types.ts 100.00% <ø> (ø)
step-generation/src/utils/index.ts 100.00% <ø> (ø)
...src/components/FileSidebar/utils/getUnusedTrash.ts 71.42% <71.42%> (ø)
...esigner/src/components/FileSidebar/FileSidebar.tsx 78.33% <62.50%> (-0.52%) ⬇️
...ponents/FileSidebar/utils/getUnusedStagingAreas.ts 58.82% <58.82%> (ø)

... and 878 files with indirect coverage changes

@jerader jerader changed the title feat(step-generation, shared-data): add moveToAddressableArea command to types & atomic commands feat(step-generation, shared-data): add waste chute commands to types & atomic commands Nov 6, 2023
Comment on lines +88 to +89
// TODO(jr, 11/6/23): add to result type
result?: {}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do we know what the result type should be?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we do yet, so a TODO is fine for now

) => {
const { pipetteId, addressableAreaName } = args

// No-op if there is no pipette
Copy link
Contributor

Choose a reason for hiding this comment

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

is this consistent with what we'd do elsewhere in SG? It seems to me like we'd probably create an error?

CurriedCommandCreator,
} from '../types'

export type WasteChuteCommandsTypes = 'dispense' | 'blow out' | 'drop tip'
Copy link
Contributor

Choose a reason for hiding this comment

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

the spaces in this internal enumeration seem inconsistent with the rest of our codebase, is there are reason they're not camelCase?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it was so i could plug them into the error creator, but ya i should change these to camelCase then split up the strings for the error creator in another const.

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.

A few nitpicks. Nothing that can't be addressed in a follow up 🍁

@jerader jerader merged commit 02ba7e5 into edge Nov 6, 2023
35 of 42 checks passed
@jerader jerader deleted the sg_move-to-addressable-area branch November 6, 2023 22:18
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