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

fix: new misc tags for packaging imports, + set packagings_complete #8409

Merged
merged 4 commits into from
May 11, 2023

Conversation

stephanegigandet
Copy link
Contributor

This PR creates new fields for the number of packaging components (in particular to ease debugging of packagings imports from producers).
When we get packagings imported from producers, it also sets the packagings_complete field to 1.

@stephanegigandet stephanegigandet requested a review from a team as a code owner May 11, 2023 08:08
@github-actions github-actions bot added Data import 📦 Packaging https://wiki.openfoodfacts.org/Category:Recycling 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers 🧪 tests labels May 11, 2023
@codecov-commenter
Copy link

codecov-commenter commented May 11, 2023

Codecov Report

Merging #8409 (a683ede) into main (e70a705) will increase coverage by 0.00%.
The diff coverage is 66.66%.

@@           Coverage Diff           @@
##             main    #8409   +/-   ##
=======================================
  Coverage   48.44%   48.45%           
=======================================
  Files         113      113           
  Lines       21251    21260    +9     
  Branches     4767     4769    +2     
=======================================
+ Hits        10296    10302    +6     
- Misses       9674     9676    +2     
- Partials     1281     1282    +1     
Impacted Files Coverage Δ
lib/ProductOpener/Import.pm 30.73% <0.00%> (-0.04%) ⬇️
lib/ProductOpener/Packaging.pm 75.00% <75.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -23,13 +23,11 @@
"vegetarian" : "maybe"
},
{
"id" : "en:basil-leaf",
"id" : "fr:feuilles-de-basilic",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you know why we have this change ?

Copy link
Contributor Author

@stephanegigandet stephanegigandet May 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake, I updated the tests with a wrong version of the taxonomy.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@teolemon teolemon changed the title fix: new misc tags fort packaging imports, + set packagings_complete fix: new misc tags for packaging imports, + set packagings_complete May 11, 2023
@stephanegigandet stephanegigandet merged commit c78a458 into main May 11, 2023
@stephanegigandet stephanegigandet deleted the packagings branch May 11, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data import misc tags 📦 Packaging https://wiki.openfoodfacts.org/Category:Recycling 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers 🧪 tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants