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

fix(app, api-client): fix choose protocol slideout issue #14949

Merged
merged 5 commits into from
Apr 22, 2024

Conversation

koji
Copy link
Contributor

@koji koji commented Apr 18, 2024

Overview

Slideout only shows protocols that have the same robotType as well as the selected robot.
As a result, the issue Nus faced won't happen.

I noticed that the data we use for RTP/non-RTP is wrong.
We used something like below but runtimeParameter is under mostRecentAnalisys and the following doesn't work as non-runtime parameter protocol.

I will update the test in a following pr.

...dataFixture,
runtimeParameter: []

close RQA-2607

Test Plan

Changelog

  • add filter to storedProtocol to hide unnecessary protocols(different from the selected robot's robotType)

Review requests

Risk assessment

low

@koji koji requested review from ncdiehl11 and jerader April 18, 2024 19:54
@koji koji marked this pull request as ready for review April 18, 2024 19:54
@koji koji requested a review from a team as a code owner April 18, 2024 19:54
@koji koji removed the request for review from a team April 18, 2024 20:09
} = props
const { t } = useTranslation(['device_details', 'protocol_details', 'shared'])
const storedProtocols = useSelector((state: State) =>
getStoredProtocols(state)
).filter(
protocol => protocol.mostRecentAnalysis?.robotType === robot.robotModel
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice. I had to double check robotModel type 😅 , didn't realize robotType and robotModel are the same thing, very confusing

// })
// expect(mockTrackCreateProtocolRunEvent).toHaveBeenCalled()
// })
it('calls createRunFromProtocolSource if CTA clicked', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice!

Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

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

lgtm!

@koji koji merged commit 26d55ec into edge Apr 22, 2024
21 checks passed
@koji koji deleted the fix_choose-protocol-slideout-issue-with-rtp branch April 22, 2024 15:59
y3rsh added a commit that referenced this pull request Apr 23, 2024
* edge: (194 commits)
  fix(app): clone run with RTPs from HistoricalProtocolRun (#14959)
  fix(api): Filter out `air_gap()` calls as higher-order commands (#14985)
  fix(app): fix infinitely re-rendering/never rendering firmware success toasts (#14981)
  feat(api): add option to ignore different tip presence states (#14980)
  feat(opentrons-ai-client) add input textbox to container (#14968)
  fix(app): add robotSerialNumber to proceedToRun event (#14976)
  fix(api): remove homing patch fix for right mount when a 96-channel is attached (#14975)
  feat(api-client,app,react-api-client): upload splash logo from desktop app (#14941)
  fix(robot-server): notify /runs when a non-current run is deleted (#14974)
  feature(api, robot-server): Allow fixit commands to recover from an error (#14908)
  feat(hardware-testing): enable multi sensor processing in liquid probe (#14883)
  fix(app): prevent "run again" banner from rendering after navigating away from the current run (#14973)
  refactor(components): refactor roundtab stories (#14956)
  refactor(protocol-designer): assign module slot in createFileWizard instead of modal (#14951)
  fix(app, api-client): fix choose protocol slideout issue (#14949)
  refactor(protocol-designer): tip position modal max values round down (#14972)
  feat(app): add tiprack selection step to quick transfer flow (#14950)
  ci(shared-data): install dependencies in workflow (#14958)
  fix(components): fix icon stories (#14969)
  feat(opentrons-ai-client): introduce react-markdown to chat display component (#14965)
  ...
Carlos-fernandez pushed a commit that referenced this pull request May 20, 2024
* fix(app, api-client): fix choose protocol slideout issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants