-
-
Notifications
You must be signed in to change notification settings - Fork 406
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: improve taxonomy for products available in Croatia #8140
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8140 +/- ##
=======================================
Coverage 45.56% 45.56%
=======================================
Files 102 102
Lines 20279 20279
Branches 4632 4632
=======================================
Hits 9240 9240
Misses 9942 9942
Partials 1097 1097
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
After adding so many entries in the taxonomies I encountered couple of errors regarding duplicated entries (for example, an entry in additives that was already in minerals). In the logs there were also duplicates for entries not related to the changes I did (some fr and fi entries, mainly. I remember for vitamin c for these two languages that are in both additives and in vitamins) Phosphate de calcium was in minerals and ingredients and that is good that you noticed that I forgot these two. (1) could it be that one of the workflow (unit test) is related to the taxonomies files whereas the other workflow (perl unit test) is related to something else like ingredients.all ? - Short answer: I messed up. I just fixed that. - Rolled back changes In any case, I rolled back changes as follow:
by:
I guess other duplicates entries not related to the changes I did could be addressed in different pull request. |
Kudos, SonarCloud Quality Gate passed! |
@benbenben2 So for ingredients, it is expected to have duplicates, as some ingredients can be both minerals and additives for instance. When we concatenate them into ingredients.all, there will be duplicates. But we ignore duplicates for ingredients, in the sense that they won't make the tests fail. |
I don't know, I misunderstood the logs after the failed tests. If you have time you can have a look at it (you can see the logs by scrolling here above, between "Merge branch 'main' into taxonomy_HR_ingredients_20230221" and "a69971f", if you click on the red cross, then "Details" next to "Pull Requests / Perl unit tests (pull_request)") and tell me what was wrong because I am a bit curious and would like to understand. If you don't have time let's forget about it. Anyway, I applied changes since Yesterday. Let me know if something else need to be changed. |
For this test, the error that makes the test fail is this one:
The corresponding code in Tags.pm explains a bit what happens:
|
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.
Looks good, thank you!
updated taxonomies for products found in Croatia (include Serbian, Bosnian, Slovenian, German, etc. languages)