-
-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add support to import CSV file with multiple image urls for one …
…product on separate rows (Carrefour) + fix fake download of images for tests (#9058) * fix: add support for semi-colon ; as a separator * fix tests for uploading images * support for multiple lines with image_other_url for the same product * update tests * support for multiple lines with image_other_url for the same product * support for multiple lines with image_other_url for the same product --------- Co-authored-by: off <off@openfoodfacts.org>
- Loading branch information
1 parent
72b5c84
commit b0280f6
Showing
24 changed files
with
1,615 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...ults/convert_and_import_excel_file/carrefour-images/converted_csv/conversion_results.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"products" : 2, | ||
"rows" : 8, | ||
"status" : "success" | ||
} |
15 changes: 15 additions & 0 deletions
15
...ults/convert_and_import_excel_file/carrefour-images/converted_csv/rows/3560070167470.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"code" : "3560070167470", | ||
"countries" : "fr", | ||
"image_other_type" : "Front", | ||
"image_other_type.2" : "Back", | ||
"image_other_type.3" : "Right", | ||
"image_other_type.4" : "", | ||
"image_other_type.5" : "", | ||
"image_other_url" : "https://basephoto-cdn.carrefour.com/product_pictures/carrefour-470-1-f.jpg", | ||
"image_other_url.2" : "https://basephoto-cdn.carrefour.com/product_pictures/carrefour-470-2-b.jpg", | ||
"image_other_url.3" : "https://basephoto-cdn.carrefour.com/product_pictures/carrefour-470-3-r.jpg", | ||
"image_other_url.4" : "", | ||
"image_other_url.5" : "", | ||
"lc" : "fr" | ||
} |
15 changes: 15 additions & 0 deletions
15
...ults/convert_and_import_excel_file/carrefour-images/converted_csv/rows/3560070815746.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"code" : "3560070815746", | ||
"countries" : "fr", | ||
"image_other_type" : "3/4", | ||
"image_other_type.2" : "3/4", | ||
"image_other_type.3" : "Front", | ||
"image_other_type.4" : "Front", | ||
"image_other_type.5" : "Left", | ||
"image_other_url" : "https://basephoto-cdn.carrefour.com/product_pictures/carrefour-746-1-o.jpg", | ||
"image_other_url.2" : "https://basephoto-cdn.carrefour.com/product_pictures/carrefour-746-2-o.jpg", | ||
"image_other_url.3" : "https://basephoto-cdn.carrefour.com/product_pictures/carrefour-746-3-f.jpg", | ||
"image_other_url.4" : "https://basephoto-cdn.carrefour.com/product_pictures/carrefour-746-4-f.jpg", | ||
"image_other_url.5" : "https://basephoto-cdn.carrefour.com/product_pictures/carrefour-746-5-o.jpg", | ||
"lc" : "fr" | ||
} |
3 changes: 3 additions & 0 deletions
3
...t_results/convert_and_import_excel_file/carrefour-images/converted_csv/test.converted.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
lc countries code image_other_url image_other_type image_other_url.2 image_other_type.2 image_other_url.3 image_other_type.3 image_other_url.4 image_other_type.4 image_other_url.5 image_other_type.5 | ||
fr fr 3560070167470 https://basephoto-cdn.carrefour.com/product_pictures/carrefour-470-1-f.jpg Front https://basephoto-cdn.carrefour.com/product_pictures/carrefour-470-2-b.jpg Back https://basephoto-cdn.carrefour.com/product_pictures/carrefour-470-3-r.jpg Right | ||
fr fr 3560070815746 https://basephoto-cdn.carrefour.com/product_pictures/carrefour-746-1-o.jpg 3/4 https://basephoto-cdn.carrefour.com/product_pictures/carrefour-746-2-o.jpg 3/4 https://basephoto-cdn.carrefour.com/product_pictures/carrefour-746-3-f.jpg Front https://basephoto-cdn.carrefour.com/product_pictures/carrefour-746-4-f.jpg Front https://basephoto-cdn.carrefour.com/product_pictures/carrefour-746-5-o.jpg Left |
Oops, something went wrong.