-
Notifications
You must be signed in to change notification settings - Fork 516
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
Failed to update encounters on selecting certain diet preference #9817
Comments
I would like to work on this issue if we need to handle this from the frontend @Jacobjeevan @rithviknishad |
Today I re-tested the issue and found that the backend now accepts snake_case (e.g. Input should be 'vegetarian', 'diary_free', 'nut_free', 'gluten_free', 'vegan', 'halal', 'kosher' or 'none'). Previously, it expected kebab-case. It seems this was fixed on the backend side. The Update Encounter is working fine now. @rithviknishad |
Yup, it was updated in BE. Anyhow, like @bodhish already said, do move it to constants anyhow, using snake_case itself as a code quality improvement thing. Closing this issue as the bug is solved, however do make the change for the PR. |
Describe the bug
Failed to update encounters on selecting certain diet preference
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Encounter should be updated
Screenshots
Desktop (please complete the following information):
Additional context
I have debug the issue. The backend is expecting diet preference as kebab case: Ex 'diary-free', 'nut-free', 'gluten-free'
From the UI we are providing diet payload as snake case. Ex: 'diary_free', 'nut_free', 'gluten_free'
The text was updated successfully, but these errors were encountered: