Skip to content

Commit

Permalink
fix: make delete endpoint backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura-Danielle committed Feb 20, 2024
1 parent c838c18 commit 8d6dccd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export function OverflowMenu({
if (applicableTipLengthCal == null) return
params = {
calType,
tiprack_hash: applicableTipLengthCal.tiprack,
tiprack_uri: applicableTipLengthCal.uri,

Check failure on line 163 in app/src/organisms/RobotSettingsCalibration/CalibrationDetails/OverflowMenu.tsx

View workflow job for this annotation

GitHub Actions / js checks

Object literal may only specify known properties, and 'tiprack_uri' does not exist in type 'TipLengthDeletionParams'.

Check failure on line 163 in app/src/organisms/RobotSettingsCalibration/CalibrationDetails/OverflowMenu.tsx

View workflow job for this annotation

GitHub Actions / js checks

Object literal may only specify known properties, and 'tiprack_uri' does not exist in type 'TipLengthDeletionParams'.
pipette_id: applicableTipLengthCal.pipette,
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ describe('OverflowMenu', () => {
}
const expectedCallParams = {
calType: 'tipLength',
tiprack_hash: mockTipLengthCalibrationResponse.tiprack,
tiprack_uri: mockTipLengthCalibrationResponse.uri,
pipette_id: mockTipLengthCalibrationResponse.pipette,
}
const [{ getByText, getByLabelText }] = render(props)
Expand Down
5 changes: 4 additions & 1 deletion robot-server/robot_server/service/tip_length/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ async def get_all_tip_length_calibrations(
responses={status.HTTP_404_NOT_FOUND: {"model": ErrorBody}},
)
async def delete_specific_tip_length_calibration(
tiprack_uri: str, pipette_id: str, _: API = Depends(get_ot2_hardware)
pipette_id: str,
tiprack_hash: Optional[str] = None,
tiprack_uri: Optional[str] = None,
_: API = Depends(get_ot2_hardware),
):
try:
tip_length.delete_tip_length_calibration(
Expand Down

0 comments on commit 8d6dccd

Please sign in to comment.