-
Notifications
You must be signed in to change notification settings - Fork 246
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) O3-3545: Remove duplicate lab tests in lab order workspace #1916
Conversation
Size Change: +43 B (0%) Total Size: 11.1 MB ℹ️ View Unchanged
|
Excellent. Thanks, @ibacher! |
<TestTypeSearchResultItem key={index} openOrderForm={openOrderForm} t={t} testType={testType} /> | ||
{filteredTestTypes.map((testType) => ( | ||
<TestTypeSearchResultItem | ||
key={testType.conceptUuid} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we're reasonably certain that the conceptUuids are unique, we can use them as keys in the test type search results list.
@@ -52,7 +52,9 @@ describe('useTestTypes is configurable', () => { | |||
orders: { labOrderableConcepts: [] }, | |||
}); | |||
const { result } = renderHook(() => useTestTypes()); | |||
expect(mockOpenrsFetch).toHaveBeenCalledWith('/ws/rest/v1/concept?class=Test'); | |||
expect(mockOpenrsFetch).toHaveBeenCalledWith( | |||
'/ws/rest/v1/concept?class=Test?v=custom:(display,uuid,setMembers:(display,uuid,setMembers:(display,uuid)))', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes the test.
…nmrs#1909) * (test) Fix flaky behaviour in Programs and Conditions form tests * Try something else * Fixup (test) Fix yet more flakiness in ConditionsForm tests (chore) Bump React Form Engine library (openmrs#1913) (chore) Bump RFE lib (chore) Update translations from Transifex (openmrs#1906) Co-authored-by: OpenMRS Bot <[email protected]> (fix) O3-2995: Allow empty quantity to dispense and prescription refills in Drug Order Form (openmrs#1754) Co-authored-by: Dennis Kigen <[email protected]> (fix) O3-3543: Fix test types search in the lab order workspace (openmrs#1910) * added fragment * Other useful mods * Factor out filtering from useTestTypes hook * Review feedback --------- Co-authored-by: Dennis Kigen <[email protected]> (fix) O3-3545: Remove duplicate lab tests in lab order workspace (openmrs#1916) * (fix) O3-3545: Remove duplicate copies of labs * Fixup --------- Co-authored-by: Dennis Kigen <[email protected]> Bump loader-utils from 2.0.2 to 2.0.4 (openmrs#1918) Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.4. - [Release notes](https://github.com/webpack/loader-utils/releases) - [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md) - [Commits](webpack/loader-utils@v2.0.2...v2.0.4) --- updated-dependencies: - dependency-name: loader-utils dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (feat) Replace fuzzy search with simple filter for test types
Requirements
Summary
Removes duplicate lab tests. See #1910 for context.
Screenshots
Related Issue
Other