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

refactor(api): clean up labware movement error strings #13198

Merged
merged 2 commits into from
Aug 1, 2023

Conversation

ecormany
Copy link
Contributor

Overview

Small PR to clean up some user-facing error copy for labware movement.

Test Plan

Read words. Words good?

Changelog

  • excised a user-facing mention of "OT-3"
  • capitalized module product names
  • general prose cleanup

Review requests

The only edits in this PR are within strings, but they are code, not docs. Is there anything preventing us from making these changes, and is edge the right target branch?

Risk assessment

low.

@ecormany ecormany requested a review from a team as a code owner July 31, 2023 12:38
@ecormany ecormany requested a review from sanni-t July 31, 2023 12:38
@@ -230,7 +230,7 @@ def ensure_valid_gripper_location(
location, (DeckSlotLocation, ModuleLocation, OnLabwareLocation)
):
raise LabwareMovementNotAllowedError(
"Off-deck labware movements are not supported using the gripper."
"Cannot move labware off-deck using the gripper."
Copy link
Contributor

Choose a reason for hiding this comment

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

This string is used when the source location is off-deck, as well.

"Cannot move labware to or from off-deck using the gripper"? :\

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I kinda just discovered off-deck -> on-deck movements today 😅
Going with Cannot perform off-deck labware movements with the gripper.

@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Merging #13198 (ef9ccfa) into edge (9a499f9) will not change coverage.
Report is 3 commits behind head on edge.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             edge   #13198   +/-   ##
=======================================
  Coverage   72.55%   72.55%           
=======================================
  Files        2398     2398           
  Lines       66084    66084           
  Branches     7368     7368           
=======================================
  Hits        47950    47950           
  Misses      16370    16370           
  Partials     1764     1764           
Flag Coverage Δ
g-code-testing 96.44% <ø> (ø)
notify-server 89.13% <ø> (ø)

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

@ecormany ecormany merged commit 2254a0f into edge Aug 1, 2023
25 checks passed
@ecormany ecormany deleted the labware-movement-error-msgs branch August 1, 2023 02:40
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