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: more changes for GS1 import through Bayard #8068

Merged
merged 9 commits into from
Feb 9, 2023
Merged

Conversation

stephanegigandet
Copy link
Contributor

Add some mappings and fix some bugs.

@stephanegigandet stephanegigandet requested a review from a team as a code owner February 3, 2023 16:29
@github-actions github-actions bot added Data import GS1 The producer platform is integrating with the GS1 product data formats. GS1 manages barcodes. labels 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers 🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies labels Feb 3, 2023
@github-actions github-actions bot removed labels 🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies labels Feb 3, 2023
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (main@dab7ac3). Click here to learn what that means.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #8068   +/-   ##
=======================================
  Coverage        ?   44.70%           
=======================================
  Files           ?      100           
  Lines           ?    20213           
  Branches        ?     4636           
=======================================
  Hits            ?     9037           
  Misses          ?    10103           
  Partials        ?     1073           
Impacted Files Coverage Δ
lib/ProductOpener/GS1.pm 70.81% <ø> (ø)
lib/ProductOpener/ImportConvert.pm 61.54% <100.00%> (ø)

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

@github-actions github-actions bot added 🧴 Open Beauty Facts Our cosmetic analysis project https://world.openbeautyfacts.org 🧪 tests labels Feb 7, 2023
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

@@ -851,9 +851,13 @@ sub clean_fields ($product_ref) {
foreach my $brand (split(/,/, $product_ref->{brands})) {
$brand =~ s/^\s+//;
$brand =~ s/\s+$//;
# we may get brands with quantifiers like * + ? etc. we need to escape them
$brand =~ s/(\*|\+|\?|\(|\)|\[|\]|\{|\}|\$|\^|\\)/\\/g;
Copy link
Member

Choose a reason for hiding this comment

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

delicious :-P

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data import GS1 The producer platform is integrating with the GS1 product data formats. GS1 manages barcodes. 🧴 Open Beauty Facts Our cosmetic analysis project https://world.openbeautyfacts.org 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers 🧪 tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants