-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Resolve to_shopify mappings from intermediate versions to latest
- Loading branch information
1 parent
dc00ac3
commit 2add753
Showing
23 changed files
with
541 additions
and
113 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
4 changes: 2 additions & 2 deletions
4
dev/test/fixtures/data/integrations/foocommerce/1.0.0/full_names.yml
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
- id: 1 | ||
full_name: Animals & Pet Supplies (foocommerce) | ||
full_name: Apparel & Accessories (foocommerce) | ||
- id: 2 | ||
full_name: Animals & Pet Supplies > Live Animals (foocommerce) | ||
full_name: Apparel & Accessories > Clothing (foocommerce) |
4 changes: 2 additions & 2 deletions
4
dev/test/fixtures/data/integrations/foocommerce/1.0.0/mappings/from_shopify.yml
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
--- | ||
rules: | ||
- input: | ||
product_category_id: ap | ||
product_category_id: aa | ||
output: | ||
product_category_id: | ||
- '1' | ||
- input: | ||
product_category_id: ap-1 | ||
product_category_id: aa-1 | ||
output: | ||
product_category_id: | ||
- '2' |
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 |
---|---|---|
|
@@ -5,3 +5,5 @@ | |
- name: shopify | ||
available_versions: | ||
- shopify/2020-01 | ||
- shopify/2021-01 | ||
- shopify/2022-01 |
4 changes: 2 additions & 2 deletions
4
dev/test/fixtures/data/integrations/shopify/2020-01/full_names.yml
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
- id: 1 | ||
full_name: Animals & Pet Supplies (old shopify) | ||
full_name: Apparel & Accessories (2020-01) | ||
- id: 2 | ||
full_name: Animals & Pet Supplies > Live Animals (old shopify) | ||
full_name: Apparel & Accessories > Clothing (2020-01) |
6 changes: 4 additions & 2 deletions
6
dev/test/fixtures/data/integrations/shopify/2020-01/mappings/to_shopify.yml
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
--- | ||
input_taxonomy: shopify/2020-01 | ||
output_taxonomy: shopify/2021-01 | ||
rules: | ||
- input: | ||
product_category_id: 1 | ||
output: | ||
product_category_id: | ||
- ap | ||
- aa | ||
- input: | ||
product_category_id: 2 | ||
output: | ||
product_category_id: | ||
- ap-1 | ||
- aa-1 |
3 changes: 3 additions & 0 deletions
3
dev/test/fixtures/data/integrations/shopify/2021-01/full_names.yml
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 @@ | ||
--- | ||
- id: aa-1 | ||
full_name: Apparel & Accessories > Clothing (2021-01) |
9 changes: 9 additions & 0 deletions
9
dev/test/fixtures/data/integrations/shopify/2021-01/mappings/to_shopify.yml
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,9 @@ | ||
--- | ||
input_taxonomy: shopify/2021-01 | ||
output_taxonomy: shopify/2022-01 | ||
rules: | ||
- input: | ||
product_category_id: aa-1 | ||
output: | ||
product_category_id: | ||
- aa-2 |
3 changes: 3 additions & 0 deletions
3
dev/test/fixtures/data/integrations/shopify/2022-01/full_names.yml
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 @@ | ||
--- | ||
- id: aa-2 | ||
full_name: Apparel & Accessories > Clothing Accessories (2022-01) |
9 changes: 9 additions & 0 deletions
9
dev/test/fixtures/data/integrations/shopify/2022-01/mappings/to_shopify.yml
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,9 @@ | ||
--- | ||
input_taxonomy: shopify/2022-01 | ||
output_taxonomy: shopify/2025-01-unstable | ||
rules: | ||
- input: | ||
product_category_id: aa-2 | ||
output: | ||
product_category_id: | ||
- aa-3 |
125 changes: 125 additions & 0 deletions
125
dev/test/fixtures/dist/en/integrations/all_mappings.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,125 @@ | ||
{ | ||
"version": "2025-01-unstable", | ||
"mappings": [ | ||
{ | ||
"input_taxonomy": "shopify/2025-01-unstable", | ||
"output_taxonomy": "foocommerce/1.0.0", | ||
"rules": [ | ||
{ | ||
"input": { | ||
"category": { | ||
"id": "gid://shopify/TaxonomyCategory/aa", | ||
"full_name": "Apparel & Accessories" | ||
} | ||
}, | ||
"output": { | ||
"category": [ | ||
{ | ||
"id": "1", | ||
"full_name": "Apparel & Accessories (foocommerce)" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"input": { | ||
"category": { | ||
"id": "gid://shopify/TaxonomyCategory/aa-1", | ||
"full_name": "Apparel & Accessories > Clothing" | ||
} | ||
}, | ||
"output": { | ||
"category": [ | ||
{ | ||
"id": "2", | ||
"full_name": "Apparel & Accessories > Clothing (foocommerce)" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"input_taxonomy": "shopify/2020-01", | ||
"output_taxonomy": "shopify/2025-01-unstable", | ||
"rules": [ | ||
{ | ||
"input": { | ||
"category": { | ||
"id": "1", | ||
"full_name": "Apparel & Accessories (2020-01)" | ||
} | ||
}, | ||
"output": { | ||
"category": [ | ||
{ | ||
"id": "gid://shopify/TaxonomyCategory/aa", | ||
"full_name": "Apparel & Accessories" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"input": { | ||
"category": { | ||
"id": "2", | ||
"full_name": "Apparel & Accessories > Clothing (2020-01)" | ||
} | ||
}, | ||
"output": { | ||
"category": [ | ||
{ | ||
"id": "gid://shopify/TaxonomyCategory/aa-3", | ||
"full_name": "Apparel & Accessories > Costumes & Accessories" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"input_taxonomy": "shopify/2021-01", | ||
"output_taxonomy": "shopify/2025-01-unstable", | ||
"rules": [ | ||
{ | ||
"input": { | ||
"category": { | ||
"id": "aa-1", | ||
"full_name": "Apparel & Accessories > Clothing (2021-01)" | ||
} | ||
}, | ||
"output": { | ||
"category": [ | ||
{ | ||
"id": "gid://shopify/TaxonomyCategory/aa-3", | ||
"full_name": "Apparel & Accessories > Costumes & Accessories" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"input_taxonomy": "shopify/2022-01", | ||
"output_taxonomy": "shopify/2025-01-unstable", | ||
"rules": [ | ||
{ | ||
"input": { | ||
"category": { | ||
"id": "aa-2", | ||
"full_name": "Apparel & Accessories > Clothing Accessories (2022-01)" | ||
} | ||
}, | ||
"output": { | ||
"category": [ | ||
{ | ||
"id": "gid://shopify/TaxonomyCategory/aa-3", | ||
"full_name": "Apparel & Accessories > Costumes & Accessories" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
43 changes: 43 additions & 0 deletions
43
dev/test/fixtures/dist/en/integrations/foocommerce/shopify_2025-01_to_foocommerce_1.0.0.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,43 @@ | ||
{ | ||
"version": "2025-01-unstable", | ||
"mappings": [ | ||
{ | ||
"input_taxonomy": "shopify/2025-01-unstable", | ||
"output_taxonomy": "foocommerce/1.0.0", | ||
"rules": [ | ||
{ | ||
"input": { | ||
"category": { | ||
"id": "gid://shopify/TaxonomyCategory/aa", | ||
"full_name": "Apparel & Accessories" | ||
} | ||
}, | ||
"output": { | ||
"category": [ | ||
{ | ||
"id": "1", | ||
"full_name": "Apparel & Accessories (foocommerce)" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"input": { | ||
"category": { | ||
"id": "gid://shopify/TaxonomyCategory/aa-1", | ||
"full_name": "Apparel & Accessories > Clothing" | ||
} | ||
}, | ||
"output": { | ||
"category": [ | ||
{ | ||
"id": "2", | ||
"full_name": "Apparel & Accessories > Clothing (foocommerce)" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
dev/test/fixtures/dist/en/integrations/foocommerce/shopify_2025-01_to_foocommerce_1.0.0.txt
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,10 @@ | ||
# Shopify Product Taxonomy - Mapping shopify/2025-01-unstable to foocommerce/1.0.0 | ||
# Format: | ||
# → {base taxonomy category name} | ||
# ⇒ {mapped taxonomy category name} | ||
|
||
→ Apparel & Accessories | ||
⇒ Apparel & Accessories (foocommerce) | ||
|
||
→ Apparel & Accessories > Clothing | ||
⇒ Apparel & Accessories > Clothing (foocommerce) |
Oops, something went wrong.