Skip to content

Update Amounts and Units for better sorting and filtering behavior#2678

Merged
cnathe merged 7 commits intodevelopfrom
fb_amountsAndUnits
Sep 15, 2025
Merged

Update Amounts and Units for better sorting and filtering behavior#2678
cnathe merged 7 commits intodevelopfrom
fb_amountsAndUnits

Conversation

@cnathe
Copy link
Contributor

@cnathe cnathe commented Sep 9, 2025

Rationale

See platform PR for rationale.

This PR adds some new test cases for the amounts/units updates, especially in LKS grid cases.

Related Pull Requests

Changes

  • SampleTypeTest test cases for amounts and units (error when missing a…mount or unit, successful conversion, success insert/update/import)

…mount or unit, successful conversion, success insert/update/import)
Comment on lines +2074 to +2080
G("g", "g (grams)"),
MG("mg", "mg (milligrams)"),
KG("kg", "kg (kilograms)"),
ML("mL", "mL (milliliters)"),
UL("uL", "uL (microliters)"),
L("L", "L (liters)"),
UNIT("unit", "unit");
Copy link
Contributor

Choose a reason for hiding this comment

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

There is InventoryMetricUnit enum class in the Inventory module. Maybe that should be pulled out to the TestAutomation module?

I don't think you need to change this, just tossing an idea out.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I think InventoryMetricUnit should be moved to testAutomation next to the interface it implements. But I am going to hold off an make that change in a separate PR since there are a lot of usages and I want to reduce the churn on this current PR.

@cnathe cnathe merged commit 358c334 into develop Sep 15, 2025
7 checks passed
@cnathe cnathe deleted the fb_amountsAndUnits branch September 15, 2025 18:54
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