Skip to content

Chore: Incremental mergeback of PD chore release 8.4.4 into edge #18170

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

Merged
merged 11 commits into from
Apr 24, 2025

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Apr 24, 2025

Overview

incremental chore_release-pd-8.4.4 mergeback into edge. Starting from alpha.0 so the 8.4.4 migration file can be in edge

jerader and others added 8 commits April 23, 2025 12:02
…nts JSON key to match (#17385)

closes AUTH-1382

This PR introduces `liquidEntities` to `InvariantContext` so
step-generation will have access to liquids and the liquid `pythonName`.
As a result, the previous selector that stored liquid info,
`allIngredientNamesIds` has been deprecated.

Additionally, `pythonName` is assigned during liquid creation via the
`EDIT_LIQUID_GROUP` action and if a user deletes a liquid, the
`deleteLiquidGroup` thunk is called which: deletes the liquid, edits all
subsequent liquids with the new `liquidEntities` object.
closes AUTH-1396

The goal of this PR is so when importing JSON/python protocols back into
PD, we can determine the additionalEquipment entities from `stepForms`
instead of reading the commands.

This PR introduces a few new `-locationUpdate` keys in
`savedStepForms`'s `INITIAL_DECK_SETUP_STEP` step. The locations
include:
- `trashBinLocationUpdate`
- `wasteChuteLocationUpdate`
- `gripperLocationUpdate`
- `stagingAreaLocationUpdate`
#17432)

…odules keys

closes AUTH-1407

This PR introduces `designerApplication` top level keys for `modules`,
`labware`, and `pipettes`. Then when you import a protocol, the migration will grab that info from the load commands and the `load-file` reducer will use that info to populate the `labwareEntities`, `pipetteEntities`, and `moduleEntities`.

Additionally, this pr deprecates the `defaultValues` key that was not in use at all
…o each entity (#17463)

closes AUTH-1383

For python/pd interop, we want to add a `pythonName` to `liquidEntity`,
`labwareEntity`, `moduleEntity`, and `pipetteEntity`. This PR does that
by adding them in redux, that way, the `pythonName` is not polluting the
JSON structure. For Quick Transfer, the `pythonName` is generated in
`generateQuickTransferArgs`.

The python name patterning is as follows:
- modules: moduleType minus `Type` in snake case plus the number so
`heater_shaker_module_1` and then `heater_shaker_module_2` for 2
heater-shaker modules
- pipettes: `pipette_left` or `pipette_right`
- labware: the labware displayCategory in snake case plus the number. So
2 well plates and 1 reservoir would be `well_plate_1`, `well_plate_2`,
`reservoir_1`
- liquids: just liquid with the number so `liquid_1`, `liquid_2`, etc.
Copy link

codecov bot commented Apr 24, 2025

Codecov Report

Attention: Patch coverage is 4.10959% with 70 lines in your changes missing coverage. Please review.

Project coverage is 57.95%. Comparing base (b5e812f) to head (f53d071).
Report is 7 commits behind head on edge.

Files with missing lines Patch % Lines
protocol-designer/src/load-file/migration/8_4_4.ts 2.94% 66 Missing ⚠️
protocol-designer/src/load-file/migration/8_5_0.ts 0.00% 3 Missing ⚠️
protocol-designer/src/load-file/migration/index.ts 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             edge   #18170       +/-   ##
===========================================
+ Coverage   24.95%   57.95%   +32.99%     
===========================================
  Files        3032     3035        +3     
  Lines      235532   252734    +17202     
  Branches    20161    27717     +7556     
===========================================
+ Hits        58780   146475    +87695     
+ Misses     176738   106074    -70664     
- Partials       14      185      +171     
Flag Coverage Δ
protocol-designer 18.90% <4.16%> (-0.01%) ⬇️

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

Files with missing lines Coverage Δ
protocol-designer/src/load-file/migration/index.ts 44.92% <50.00%> (-14.69%) ⬇️
protocol-designer/src/load-file/migration/8_5_0.ts 1.00% <0.00%> (-0.05%) ⬇️
protocol-designer/src/load-file/migration/8_4_4.ts 2.94% <2.94%> (ø)

... and 2239 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jerader jerader changed the title Mergeback PD chore release 8.4.4 into edge Chore: Incremental mergeback of PD chore release 8.4.4 into edge Apr 24, 2025
@jerader jerader marked this pull request as ready for review April 24, 2025 16:45
@jerader jerader requested a review from a team as a code owner April 24, 2025 16:45
@jerader jerader requested a review from ddcc4 April 24, 2025 16:45
@jerader jerader merged commit 6c4834d into edge Apr 24, 2025
15 of 16 checks passed
@jerader jerader deleted the mergeback_844-into-edge branch April 24, 2025 19:29
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