Skip to content

fix(app): fix blocking LPC on the flex when the protocol does not involve a tip pick up #18214

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 3 commits into from
Apr 30, 2025

Conversation

mjhuff
Copy link
Contributor

@mjhuff mjhuff commented Apr 30, 2025

Closes RQA-4159

Overview

useLPCDisabledReason is responsible for blocking LPC due to LPC-external reasons. Some of these reasons are OT-2/Flex specific, and depend on a robotName, which is an optional prop. This optional prop was not passed to the hook for the ODD LPC entry point, which defaults the hook to treating Flexes as OT-2s on the ODD.

To fix (see d25ee1b), we just pass the robotName prop. While I did consider marking the prop as non-optional, which seems like the correct thing to do, the blast radius seems a little too great given that we render quite different copy depending on whether this name is supplied or not, and I don't think where we are in the release cycle lends itself to making a larger change.

Upon further investigation (30481e9), it appears that the desktop app was missing some calibration/module specific blocking reasons. The original prop names lend themselves to thinking they only apply to the ODD, but I don't see why this is the case after reviewing how the props are used. My guess is there used to be some existing discrepancies in how desktop vs. ODD setup used to occur that are no longer relevant. I think keeping the two apps consistent in their disabled reasons warrants this change, but I'm open to discussion on this point.

42c9609 is just a simple refactor: relocate a util since it's not ODD specific anymore.

Current Behavior

Screen.Recording.2025-04-30.at.2.31.08.PM.mov

Fixed Behavior

Screen.Recording.2025-04-30.at.2.30.31.PM.mov

Test Plan and Hands on Testing

  • Audited all our usages of useLPCDisabledReason, ensuring that correct props are passed in all places.

Changelog

  • Fixed LPC on the ODD sometimes being disabled for OT-2 reasons.

Review requests

  • How do we feel about 30481e9? Does this change seem reasonable given where we are in the QA cycle? Easy to revert if we need to, but I personally think we want this.

Risk assessment

lowish

@mjhuff mjhuff requested review from sfoster1, SyntaxColoring and a team April 30, 2025 19:34
@mjhuff mjhuff requested a review from a team as a code owner April 30, 2025 19:34
@mjhuff mjhuff requested review from smb2268 and removed request for a team and smb2268 April 30, 2025 19:34
Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

that is weird and complicated, thanks for fixing. reason #999999 to refactor protocol setup

Copy link
Contributor

@SyntaxColoring SyntaxColoring left a comment

Choose a reason for hiding this comment

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

Wow, not at all what I thought that bug would be. Thanks for untangling that.

@mjhuff mjhuff merged commit d5f456b into chore_release-8.4.0 Apr 30, 2025
30 checks passed
@mjhuff mjhuff deleted the app_lpc-fix-blocking-pick-up-tip branch April 30, 2025 20:06
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