Skip to content

Commit

Permalink
Resolves #463 - Add sleep before creating a catalog to handle delays (#…
Browse files Browse the repository at this point in the history
…464)

Resolves #463 - Add sleep before creating a catalog to handle delays
  • Loading branch information
steve-r-west authored Aug 11, 2024
1 parent 7ce9bf7 commit 35b7430
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
version: 2
before:
hooks:
# this is just an example and not a requirement for provider building/publishing
Expand Down Expand Up @@ -65,7 +66,7 @@ signs:
# If you want to manually examine the release before its live, uncomment this line:
# draft: true
changelog:
skip: false
disable: false


# .goreleaser.yaml
Expand Down
1 change: 1 addition & 0 deletions external/runbooks/account-management.epcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ actions:
- |
epcc create pcm-pricebook name "Account 1 Pricebook" description "Account 1 Pricebook"
epcc create pcm-pricebook name "Account 2 Pricebook" description "Account 2 Pricebook"
- sleep 2
- |
epcc create pcm-catalog name "Account 1 Catalog" description "Account 1 Catalog" pricebook_id name=Account_1_Pricebook hierarchy_ids[0] name=Hierarchy_For_Account_1
epcc create pcm-catalog name "Account 2 Catalog" description "Account 2 Catalog" pricebook_id name=Account_2_Pricebook hierarchy_ids[0] name=Hierarchy_For_Account_2
Expand Down
1 change: 1 addition & 0 deletions external/runbooks/customer-cart-associations.epcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ actions:
- |
epcc create pcm-product-price name=Preferred_Pricing currencies.USD.amount 300000 currencies.USD.includes_tax false currencies.GBP.amount 250000 currencies.GBP.includes_tax false sku BE-Electric-Range-1a1a
epcc create pcm-product-price name=Preferred_Pricing currencies.USD.amount 350000 currencies.USD.includes_tax false currencies.GBP.amount 300000 currencies.GBP.includes_tax false sku BE-Gas-Range-2b2b
- sleep 2
- epcc create pcm-catalog name "Ranges Catalog" description "Ranges Catalog" pricebook_id name=Preferred_Pricing hierarchy_ids[0] name=Major_Appliances
- epcc create pcm-catalog-release --save-as-alias pxm-how-to-create-catalog-and-publish-release name=Ranges_Catalog
# Wait for Catalog to be Published
Expand Down
1 change: 1 addition & 0 deletions external/runbooks/manual-gateway-how-to.epcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ actions:
- |
epcc create pcm-product-price name=Preferred_Pricing currencies.USD.amount 300000 currencies.USD.includes_tax false currencies.GBP.amount 250000 currencies.GBP.includes_tax false sku BE-Electric-Range-1a1a
epcc create pcm-product-price name=Preferred_Pricing currencies.USD.amount 350000 currencies.USD.includes_tax false currencies.GBP.amount 300000 currencies.GBP.includes_tax false sku BE-Gas-Range-2b2b
- sleep 2
- epcc create pcm-catalog name "Ranges Catalog" description "Ranges Catalog" pricebook_id name=Preferred_Pricing hierarchy_ids[0] name=Major_Appliances
- epcc create pcm-catalog-release --save-as-alias manual-gateway-how-to-create-catalog-and-publish-release name=Ranges_Catalog
- epcc get pcm-catalog-release --retry-while-jq '.data.meta.release_status != "PUBLISHED"' name=Ranges_Catalog manual-gateway-how-to-create-catalog-and-publish-release
Expand Down
3 changes: 3 additions & 0 deletions external/runbooks/pxm-how-to.epcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ actions:
- |
epcc create pcm-product-price name=Preferred_Pricing currencies.USD.amount 300000 currencies.USD.includes_tax false currencies.GBP.amount 250000 currencies.GBP.includes_tax false sku BE-Electric-Range-1a1a
epcc create pcm-product-price name=Preferred_Pricing currencies.USD.amount 350000 currencies.USD.includes_tax false currencies.GBP.amount 300000 currencies.GBP.includes_tax false sku BE-Gas-Range-2b2b
- sleep 2
- epcc create pcm-catalog name "Ranges Catalog" description "Ranges Catalog" pricebook_id name=Preferred_Pricing hierarchy_ids[0] name=Major_Appliances
- epcc create pcm-catalog-release --save-as-alias pxm-how-to-create-catalog-and-publish-release name=Ranges_Catalog
# Wait for Catalog to be Published
Expand All @@ -39,6 +40,7 @@ actions:
- |
epcc create pcm-product-price name=Loyal_Civil_Servants_Pricing currencies.USD.amount 200000 currencies.USD.includes_tax false currencies.GBP.amount 150000 currencies.GBP.includes_tax false sku BE-Electric-Range-1a1a
epcc create pcm-product-price name=Loyal_Civil_Servants_Pricing currencies.USD.amount 250000 currencies.USD.includes_tax false currencies.GBP.amount 200000 currencies.GBP.includes_tax false sku BE-Gas-Range-2b2b
- sleep 2
- epcc create pcm-catalog name "Ranges Catalog for Special Customers" description "Ranges Catalog For Loyal Civil Servants" pricebook_id name=Loyal_Civil_Servants_Pricing hierarchy_ids[0] name=Major_Appliances
- epcc create pcm-catalog-release --save-as-alias pxm-how-to-create-catalog-rule name=Ranges_Catalog_for_Special_Customers
# Wait for Catalog to be Published
Expand Down Expand Up @@ -104,6 +106,7 @@ actions:
epcc create pcm-product-price name=VIP_Pricing currencies.USD.amount 500 currencies.USD.includes_tax false sku squeaky-ball-sku
- epcc create pcm-product attributes.name "SKU-less Bed and Ball Bundle" attributes.commodity_type "physical" status "live" components.dogbed.max 1 components.dogbed.min 1 components.dogbed.name "Dog Bed" components.dogbed.options[0].id alias/product/name=Fluffy_Bed/id components.dogbed.options[0].type "product" components.dogbed.options[0].quantity 1 components.dogball.max 1 components.dogball.min 1 components.dogball.name "Dog Ball" components.dogball.options[0].id alias/product/name=Squeaky_Ball/id components.dogball.options[0].type "product" components.dogball.options[0].quantity 1
- epcc create pcm-node-product name=Pet_Supplies name=Dog_Supplies data[0].type product data[0].id name=SKU-less_Bed_and_Ball_Bundle
- sleep 2
- epcc create pcm-catalog name "Pet Supplies Catalog" description "Pet Supplies Catalog" pricebook_id name=VIP_Pricing hierarchy_ids[0] name=Pet_Supplies
- epcc create pcm-catalog-release name=Pet_Supplies_Catalog --save-as-alias pxm-how-to-publish-catalog-with-bundles-release
# Wait for Catalog to be Published
Expand Down

0 comments on commit 35b7430

Please sign in to comment.