-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
taxonomy: mushrooms etc #8371
taxonomy: mushrooms etc #8371
Conversation
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.
Thanks for your changes. You might update some entries and replace them with an xx: entry, the xx: works as a default when a language line is missing. This keeps some ingredients a bit smaller.
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.
Thank you!
@ArturLange can you run "make lint" to make the tests pass? |
Hi @ArturLange! Great job! Looking at the logs, you have 3 failed tests:
If you want to parse them, it seems to be in Ingredients.pm, "# Vegetal oil (palm, sunflower and olive)". But it seems not be as simple as that in Polish.
That one seems to be from tests/unit/expected_test_results/nutriscore/mushrooms.json. Try to run "make update_tests_results". Or copy paste the file from the actual main branch. |
@ArturLange thanks for the contribution. If it's too hard for you to fix tests, just tell it, we might try to find the time to do it. |
BTW see https://openfoodfacts.github.io/openfoodfacts-server/dev/how-to-write-and-run-tests/#running-tests |
e15d54c
to
2369f07
Compare
@benbenben2 do you want to try to finish this PR ? |
Thanks @alexgarel, it took me some time to get to know perl a little and set up the environment, but it really helped 👍 I fixed the tests and added preparsing to Polish language, @aleene could you review again? 🙂 |
Kudos, SonarCloud Quality Gate passed! |
Big up @ArturLange for the though work 🎉 |
What