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

feat(opentrons-ai-client): filter out retired and old labware #16775

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

shlokamin
Copy link
Member

Overview

This PR filters out old and no longer supported labware for use in all of the opentrons ai app.

Changelog

  • Filter out retired labware

Review requests

Make sure old labware (like GEB tip racks) no longer show up in the app

Risk assessment

Low

@shlokamin shlokamin requested review from a team as code owners November 12, 2024 20:06
@shlokamin shlokamin requested review from ncdiehl11, connected-znaim and fbelginetw and removed request for a team and ncdiehl11 November 12, 2024 20:06
import type { LabwareDefByDefURI } from '@opentrons/shared-data'

let _definitions: LabwareDefByDefURI | null = null
export function getAllDefinitions(): LabwareDefByDefURI {
Copy link
Member Author

Choose a reason for hiding this comment

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

added our own labware getter in the ai project so we can cache all labware (which includes our filter).

if we only did this in the labware modal, the issue is that the filter would never get applied since the _definitions private object only gets instantiated once

@shlokamin
Copy link
Member Author

oopsy need to fix some tests

@shlokamin shlokamin merged commit cb65905 into edge Nov 12, 2024
33 checks passed
@shlokamin shlokamin deleted the opentrons-ai-client_filter-retired-labware branch November 12, 2024 20:46
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