Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

fix: Use standard units for nutrients #764

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

fix: Use standard units for nutrients #764

wants to merge 5 commits into from

Conversation

aleene
Copy link
Collaborator

@aleene aleene commented Oct 5, 2020

PR Description

Use standard units for nutrients, not the units in the json.

Type of Changes

@aleene aleene self-assigned this Oct 5, 2020
@aleene aleene linked an issue Oct 5, 2020 that may be closed by this pull request
@teolemon
Copy link
Member

teolemon commented Oct 7, 2020

The nutriments taxonomy is still beta. I would trust the JSON more than a third party source for the unit. Translations are another thing (although we've seen that it creates potential for bugs)

@aleene
Copy link
Collaborator Author

aleene commented Oct 7, 2020

The nutriments taxonomy is still beta. I would trust the JSON more than a third party source for the unit.
I talk about the units in the json that have been entered by the user, which indeed I do not trust.

As we use the values normalised by OFF, we can assume those units.

@teolemon teolemon changed the title Use standard units for nutrients fix: Use standard units for nutrients Oct 9, 2021
@teolemon teolemon requested a review from a team as a code owner October 23, 2021 15:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Missing units in nutrition table in edit mode Units not appearing in edit mode
2 participants