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

BAH-3454 | Refactor. removed hardcoded locale in order to search for the concept in both user and default locale #105

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

SanoferSameera
Copy link
Contributor

@SanoferSameera SanoferSameera commented Jan 22, 2024

If we don’t pass locale information, the backend will take care of searching in both user and default locale.
backend code reference: https://github.com/Bahmni/bahmni-core/blob/master/bahmnicore-omod/src/main/java/org/bahmni/module/bahmnicore/web/v1_0/search/BahmniConceptSearchHandler.java#L54-L56

@SanoferSameera SanoferSameera changed the title BAH-3454 | Refactor. search for the concept details in both user and default locales BAH-3454 | Refactor. search for the concept details in both user and default locale Jan 22, 2024
@gsluthra
Copy link

Can u add some explanation in the PR why the locale variable was dropped, and how do you handle in code the locale passing?

@SanoferSameera SanoferSameera changed the title BAH-3454 | Refactor. search for the concept details in both user and default locale BAH-3454 | Refactor. removed hardcoded locale in order to search for the concept in both user and default locale Jan 22, 2024
@SanoferSameera SanoferSameera merged commit 77d4b56 into master Jan 23, 2024
2 checks passed
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