Skip to content

refactor(shared-data): Rename getModuleDef2() -> getModuleDef() #18834

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

Merged
merged 1 commit into from
Jul 7, 2025

Conversation

SyntaxColoring
Copy link
Contributor

Overview

This function is called getModuleDef2() because it used to return ModuleDefinition2 (module definition schema 2). It's actually returned schema 3 for a while, but its name never got updated.

Test Plan and Hands on Testing

Just existing automated tests.

Changelog

Rename getModuleDef2() -> getModuleDef().

Review requests

None.

Risk assessment

Very low.

@SyntaxColoring SyntaxColoring requested review from a team as code owners July 3, 2025 22:03
@SyntaxColoring SyntaxColoring requested review from ncdiehl11 and removed request for a team July 3, 2025 22:03
Copy link

codecov bot commented Jul 3, 2025

Codecov Report

Attention: Patch coverage is 73.07692% with 7 lines in your changes missing coverage. Please review.

Project coverage is 57.13%. Comparing base (1e8c527) to head (4f50e17).
Report is 646 commits behind head on edge.

Files with missing lines Patch % Lines
components/src/hardware-sim/BaseDeck/BaseDeck.tsx 66.66% 1 Missing ⚠️
...onents/src/hardware-sim/Deck/MoveLabwareOnDeck.tsx 0.00% 1 Missing ⚠️
...are-library/src/labware-creator/fieldsToLabware.ts 50.00% 1 Missing ⚠️
.../src/pages/Designer/DeckSetup/DeckSetupDetails.tsx 0.00% 1 Missing ⚠️
...ner/src/pages/Designer/DeckSetup/FixtureRender.tsx 0.00% 1 Missing ⚠️
...rc/pages/ProtocolOverview/DeckThumbnailDetails.tsx 0.00% 1 Missing ⚠️
...eration/src/utils/createTimelineFromRunCommands.ts 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #18834      +/-   ##
==========================================
+ Coverage   54.65%   57.13%   +2.47%     
==========================================
  Files        3258     3264       +6     
  Lines      281773   284168    +2395     
  Branches    29494    36410    +6916     
==========================================
+ Hits       153998   162353    +8355     
+ Misses     127585   121616    -5969     
- Partials      190      199       +9     
Flag Coverage Δ
app 47.52% <61.53%> (+0.22%) ⬆️
protocol-designer 19.41% <30.76%> (+0.71%) ⬆️
step-generation 5.44% <7.69%> (+1.11%) ⬆️

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

Files with missing lines Coverage Δ
app/src/molecules/ModuleInfo/ModuleInfo.tsx 77.89% <100.00%> (+4.21%) ⬆️
...anisms/ErrorRecoveryFlows/hooks/useDeckMapUtils.ts 62.53% <100.00%> (ø)
.../organisms/InterventionModal/__fixtures__/index.ts 94.09% <100.00%> (+5.45%) ⬆️
.../InterventionModal/utils/getRunModuleRenderInfo.ts 100.00% <100.00%> (ø)
...transformations/analysis/getProtocolModulesInfo.ts 66.66% <100.00%> (-4.17%) ⬇️
...nts/src/hardware-sim/Module/Thermocycler/index.tsx 37.03% <100.00%> (ø)
...gner/src/components/organisms/Ot2Modules/index.tsx 79.18% <100.00%> (+79.18%) ⬆️
...igner/src/pages/Designer/DeckSetup/ModuleLabel.tsx 89.04% <100.00%> (ø)
...ner/src/pages/Designer/DeckSetup/SelectedItems.tsx 98.27% <100.00%> (+98.27%) ⬆️
shared-data/js/modules.ts 91.66% <100.00%> (+25.00%) ⬆️
... and 7 more

... and 1680 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@mjhuff mjhuff left a comment

Choose a reason for hiding this comment

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

Thanks!

@SyntaxColoring SyntaxColoring merged commit f823458 into edge Jul 7, 2025
76 checks passed
@SyntaxColoring SyntaxColoring deleted the rename_getmoduledef2 branch July 7, 2025 12:59
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