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): ensure protocol doesn't have stale status before analysis completion #14451

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

smb2268
Copy link
Contributor

@smb2268 smb2268 commented Feb 8, 2024

fix RQA-2297

Overview

During the few seconds between when isAnalyzing is true and before the analysis has resolved, the protocol card was showing a stale protocol banner. To avoid this, we should only return a stale status if analysis != null

Test Plan

Upload a protocol, see that it no longer flashes a stale banner between the loading and completed states -- see test video here:
https://github.com/Opentrons/opentrons/assets/14302493/37059d7b-ab42-4296-80fc-f3bbe52eef88

Changelog

Add analysis != null to condition for returning a stale status

Review requests

Look over video and code

Risk assessment

Low

@smb2268 smb2268 self-assigned this Feb 8, 2024
@smb2268 smb2268 requested a review from a team as a code owner February 8, 2024 16:25
Copy link

codecov bot commented Feb 8, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (17963c0) 67.77% compared to head (e52b34c) 67.77%.

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                   @@
##           chore_release-7.2.0   #14451      +/-   ##
=======================================================
- Coverage                67.77%   67.77%   -0.01%     
=======================================================
  Files                     2518     2518              
  Lines                    71968    71968              
  Branches                  9244     9244              
=======================================================
- Hits                     48777    48776       -1     
  Misses                   20989    20989              
- Partials                  2202     2203       +1     
Flag Coverage Δ
app 64.58% <0.00%> (-0.01%) ⬇️

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

Files Coverage Δ
app/src/organisms/ProtocolsLanding/utils.ts 57.14% <0.00%> (ø)

... and 1 file with indirect coverage changes

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.

changes make sense to me!

@sfoster1 sfoster1 merged commit 180d9ca into chore_release-7.2.0 Feb 9, 2024
27 of 28 checks passed
@sfoster1 sfoster1 deleted the app_stale-protocol-bug branch February 9, 2024 22:21
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