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): poll instrument info for desktop protocol setup #13192

Merged
merged 3 commits into from
Aug 4, 2023

Conversation

b-cooper
Copy link
Contributor

Overview

To avoid scenarios where users complete a wizard flow launched from the protocol setup steps only to return to a list item that still shows the old value, employ a background poll of the instruments endpoint in addition to the on complete refetches. this way updates are visible regardless of whether ODD or Desktop was used to complete the wizard.

Closes RQA-1139

Review requests

  • Complete any required attach or calibrate flows from the desktop protocol setup robot calibration step on Desktop. Upon completion, when the wizard closes, the list items should update to reflect the completed action.

Risk assessment

low

@b-cooper b-cooper requested a review from a team as a code owner July 28, 2023 19:47
@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Merging #13192 (3ecbbd9) into internal-release_0.14.0 (b20561c) will decrease coverage by 0.27%.
The diff coverage is 100.00%.

Impacted file tree graph

@@                     Coverage Diff                     @@
##           internal-release_0.14.0   #13192      +/-   ##
===========================================================
- Coverage                    72.53%   72.26%   -0.27%     
===========================================================
  Files                         2369     2371       +2     
  Lines                        65511    66387     +876     
  Branches                      7215     7514     +299     
===========================================================
+ Hits                         47518    47976     +458     
- Misses                       16255    16619     +364     
- Partials                      1738     1792      +54     
Flag Coverage Δ
app 71.53% <100.00%> (+0.18%) ⬆️
g-code-testing 96.44% <ø> (ø)
hardware 56.49% <ø> (-0.01%) ⬇️
labware-library 49.17% <ø> (ø)
notify-server 89.13% <ø> (ø)
protocol-designer 46.84% <ø> (-0.46%) ⬇️
react-api-client 64.25% <ø> (ø)
shared-data 75.79% <ø> (-4.82%) ⬇️
step-generation 87.18% <ø> (ø)

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

Files Changed Coverage Δ
...pp/src/organisms/Devices/InstrumentsAndModules.tsx 64.15% <100.00%> (ø)
...Devices/ProtocolRun/SetupInstrumentCalibration.tsx 73.33% <100.00%> (+1.90%) ⬆️
.../src/organisms/GripperWizardFlows/MountGripper.tsx 78.26% <100.00%> (+0.98%) ⬆️
...rc/organisms/GripperWizardFlows/UnmountGripper.tsx 62.96% <100.00%> (+1.42%) ⬆️

... and 42 files with indirect coverage changes

@b-cooper b-cooper changed the base branch from edge to internal-release_0.14.0 August 4, 2023 15:03
@b-cooper b-cooper requested review from a team as code owners August 4, 2023 15:03
@b-cooper b-cooper changed the base branch from internal-release_0.14.0 to edge August 4, 2023 15:03
To avoid scenarios where users complete a wizard flow launched from the protocol setup steps only to
return to a list item that still shows the old value, employ a background poll of the instruments
endpoint in addition to the on complete refetches.  this way updates are visible regardless of
whether ODD or Desktop was  used to complete the wizard.

Closes RQA-1139
@b-cooper b-cooper force-pushed the app_fix-calibration-cache-busting branch from ad4d47e to 3ecbbd9 Compare August 4, 2023 15:10
@b-cooper b-cooper changed the base branch from edge to internal-release_0.14.0 August 4, 2023 15:10
@b-cooper b-cooper merged commit 34a1f33 into internal-release_0.14.0 Aug 4, 2023
@b-cooper b-cooper deleted the app_fix-calibration-cache-busting branch August 4, 2023 18:19
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