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

feature(api): Put command implementations in charge of PipetteStore updates for tip state and pipette config #16365

Conversation

TamarZanzouri
Copy link
Contributor

@TamarZanzouri TamarZanzouri commented Sep 26, 2024

Overview

closes EXEC-733
update pipette store from command implementation for:
LoadPipetteResult
DropTipResult,
DropTipInPlaceResult,
unsafe.UnsafeDropTipInPlaceResult,
PickUpTipResult
PipetteNozzleLayoutResultMixin
PipetteConfigUpdateResultMixin for:

Test Plan and Hands on Testing

upload a protocol with the following commands/side effects and make sure its acting as expected.

Review requests

did I miss anything?

Risk assessment

Medium. need to smoke test to make sure nothing is affected.

@TamarZanzouri TamarZanzouri requested review from a team as code owners September 26, 2024 20:34
@TamarZanzouri TamarZanzouri requested review from brenthagen and removed request for a team September 26, 2024 20:34
@TamarZanzouri TamarZanzouri marked this pull request as draft September 26, 2024 20:40
@TamarZanzouri TamarZanzouri force-pushed the EXEC-733-put-command-implementations-in-charge-of-pipette-store-updates branch from 3e09c0a to a213c1f Compare September 27, 2024 16:18
@TamarZanzouri TamarZanzouri requested review from sfoster1 and SyntaxColoring and removed request for a team and brenthagen September 27, 2024 16:19
@TamarZanzouri TamarZanzouri marked this pull request as ready for review September 27, 2024 16:20
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.

Looks like a good restructure. Gosh I hate some of the code this is touching (not your changes, just what was already there)

@@ -149,72 +145,32 @@ def handle_action(self, action: Action) -> None:
elif isinstance(action, SetPipetteMovementSpeedAction):
self._state.movement_speed_by_id[action.pipette_id] = action.speed

def _handle_command( # noqa: C901
Copy link
Contributor Author

Choose a reason for hiding this comment

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

proud of removing this ;-)

@TamarZanzouri TamarZanzouri merged commit f8a02aa into edge Sep 27, 2024
21 checks passed
@TamarZanzouri TamarZanzouri deleted the EXEC-733-put-command-implementations-in-charge-of-pipette-store-updates branch September 30, 2024 13:32
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