Skip to content

GitHub Issue 790: Sample check-in and discard should not allow amount/unit input for differing units#1947

Open
cnathe wants to merge 7 commits intorelease26.3-SNAPSHOTfrom
26.3_fb_checkInUnits790
Open

GitHub Issue 790: Sample check-in and discard should not allow amount/unit input for differing units#1947
cnathe wants to merge 7 commits intorelease26.3-SNAPSHOTfrom
26.3_fb_checkInUnits790

Conversation

@cnathe
Copy link
Contributor

@cnathe cnathe commented Mar 4, 2026

Rationale

GitHub Issue 790: Checking samples in from the same sample type but with differing units sometimes doesn't display proper warning

When a sample type allows for "any" units, the options for the "Count" unit kind include multiple labels. The check in and discard modals are currently checking for matching unit kinds when seeing if it should show the input to set the amount/unit or decrement the amount unit for the selected samples. In the case of the "Count" unit kind, we also want to make sure that the samples have matching unit labels (i.e. it doesn't make sense for a sample with N cells and another samples with N bottles to show an input to decrement them by N "something").

Related Pull Requests

Changes

  • update areUnitsCompatible to account for different "Count" unit labels

cnathe added 2 commits March 3, 2026 14:52
… "Count" unit labels

- even though sample units might be of the same kind, make sure they are the same label in the "Count" case
@cnathe cnathe self-assigned this Mar 4, 2026
@cnathe cnathe requested a review from XingY March 4, 2026 22:51
@cnathe cnathe requested a review from XingY March 5, 2026 19:35
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