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(robot-server): mutable configs for attached #13696

Merged
merged 2 commits into from
Oct 3, 2023

Conversation

sfoster1
Copy link
Member

@sfoster1 sfoster1 commented Oct 2, 2023

When something hits /settings/pipettes, we load known mutable configuration overrides. So if you don't have any for the attached pipettes, we don't return anything.

The thing is, what we actually want is to return all of the mutable configurations, with overrides applied. So now we do.

Closes RET-1376

Testing

On an OT-2, attach a pipette that doesn't have overrides and GET /settings/pipettes (or view the pipette settings in the opentrons app).

When something hits /settings/pipettes, we load known mutable
configuration overrides. So if you don't have any for the attached
pipettes, we don't return anything.

The thing is, what we actually want is to return all of the mutable
configurations, with overrides applied. So now we do.

Closes RET-1376
@sfoster1 sfoster1 requested a review from a team as a code owner October 2, 2023 20:03
@codecov
Copy link

codecov bot commented Oct 2, 2023

Codecov Report

Merging #13696 (a4d6aa1) into chore_release-7.0.1 (adbccc9) will decrease coverage by 0.01%.
Report is 4 commits behind head on chore_release-7.0.1.
The diff coverage is 60.86%.

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                   @@
##           chore_release-7.0.1   #13696      +/-   ##
=======================================================
- Coverage                71.27%   71.27%   -0.01%     
=======================================================
  Files                     2427     2427              
  Lines                    68280    68294      +14     
  Branches                  7998     7999       +1     
=======================================================
+ Hits                     48668    48675       +7     
- Misses                   17731    17738       +7     
  Partials                  1881     1881              
Flag Coverage Δ
app 68.83% <ø> (+0.01%) ⬆️
g-code-testing 96.44% <ø> (ø)
notify-server 89.13% <ø> (ø)
protocol-designer 46.09% <ø> (ø)
shared-data 74.19% <60.86%> (-0.15%) ⬇️
step-generation 86.82% <ø> (ø)

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

Files Coverage Δ
...ardware_control/protocols/instrument_configurer.py 63.15% <ø> (ø)
...er/robot_server/service/legacy/routers/settings.py 100.00% <ø> (ø)
...rons_shared_data/pipette/mutable_configurations.py 86.53% <60.86%> (-3.88%) ⬇️

... and 6 files with indirect coverage changes

Copy link
Contributor

@Laura-Danielle Laura-Danielle left a comment

Choose a reason for hiding this comment

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

Changes look good, just one small name quibble.

return _pipette_settings_from_mutable_configs(mutable_configs)


def _pipette_settings_from_pipette_dict(
Copy link
Contributor

Choose a reason for hiding this comment

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

could we call this something more like _pipette_settings_from_pipette_default and/or _pipette_settings_from_default?

@sfoster1 sfoster1 merged commit c715cc4 into chore_release-7.0.1 Oct 3, 2023
43 of 45 checks passed
@sfoster1 sfoster1 deleted the ret-1376-fix-pipette-settings branch October 3, 2023 21:03
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