Skip to content

Commit

Permalink
fix(jobs): upgrade job configs for latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Jul 29, 2024
1 parent 34c8230 commit 63b4ed2
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 64 deletions.
35 changes: 1 addition & 34 deletions datasets/demo-shop/data/seed-data/organizations.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
---
id: restorecommerce-demo-root-organization
name: Restorecommerce Demo Root
contactPointIds: []
website: ""
email: ""
vatId: ""
isicV4: ""
registration: ""
logo:
url: ""
registrationCourt: ""
paymentMethodIds: []
parentId: "system"
parentId: system
meta:
modifiedBy: ""
owners:
- id: urn:restorecommerce:acs:names:ownerIndicatoryEntity
value: urn:restorecommerce:acs:model:organization.Organization
Expand All @@ -23,19 +12,8 @@
---
id: restorecommerce-demo-shops-organization
name: Restorecommerce Demo Shops
contactPointIds: []
website: ""
email: ""
vatId: ""
isicV4: ""
registration: ""
logo:
url: ""
registrationCourt: ""
paymentMethodIds: []
parentId: restorecommerce-demo-root-organization
meta:
modifiedBy: ""
owners:
- id: urn:restorecommerce:acs:names:ownerIndicatoryEntity
value: urn:restorecommerce:acs:model:organization.Organization
Expand All @@ -45,19 +23,8 @@
---
id: restorecommerce-demo-customers-organization
name: Restorecommerce Demo Customers
contactPointIds: []
website: ""
email: ""
vatId: ""
isicV4: ""
registration: ""
logo:
url: ""
registrationCourt: ""
paymentMethodIds: []
parentId: restorecommerce-demo-root-organization
meta:
modifiedBy: ""
owners:
- id: urn:restorecommerce:acs:names:ownerIndicatoryEntity
value: urn:restorecommerce:acs:model:organization.Organization
Expand Down
2 changes: 1 addition & 1 deletion datasets/demo-shop/jobs/job_catalog.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"base": "./datasets/demo-shop/data/generated/catalog/",
"options": {
"base": "./datasets/demo-shop/data/generated/catalog/",
"concurrency": 1
},
"tasks": [
Expand Down
2 changes: 1 addition & 1 deletion datasets/demo-shop/jobs/job_fulfillment.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"base": "./datasets/demo-shop/data/seed-data/",
"options": {
"base": "./datasets/demo-shop/data/seed-data/",
"concurrency": 1
},
"tasks": [
Expand Down
2 changes: 1 addition & 1 deletion datasets/demo-shop/jobs/job_identity.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"base": "./datasets/demo-shop/data/seed-data/",
"options": {
"base": "./datasets/demo-shop/data/seed-data/",
"concurrency": 1
},
"tasks": [
Expand Down
14 changes: 7 additions & 7 deletions datasets/demo-shop/jobs/job_master.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"base": "./datasets/demo-shop/data/seed-data/",
"options": {
"base": "./datasets/demo-shop/data/seed-data/",
"concurrency": 1
},
"tasks": [
Expand All @@ -22,17 +22,17 @@
"filter": "organizations.yaml",
"mutation": "mutation mutateOrganizations($var: [IIoRestorecommerceOrganizationOrganization!]!){ master_data { organization { Mutate( input: { items: $var, totalCount: 0, mode: UPSERT } ) { details{items {status {id, code, message}}, operationStatus { code message } } } } } }"
},
{
"name": "customers",
"operation": "sync",
"filter": "customers.yaml",
"mutation": "mutation{ master_data { customer { Mutate( input: { items: ${resource_list}, totalCount: 0, mode: UPSERT } ) { details{items {status {id, code, message}}, operationStatus { code message } } } } }}"
},
{
"name": "shops",
"operation": "sync",
"filter": "shops.yaml",
"mutation": "mutation{ master_data { shop { Mutate( input: { items: ${resource_list}, totalCount: 0, mode: UPSERT } ) { details{items {status {id, code, message}}, operationStatus { code message } } } } }}"
},
{
"name": "customers",
"operation": "sync",
"filter": "customers.yaml",
"mutation": "mutation{ master_data { customer { Mutate( input: { items: ${resource_list}, totalCount: 0, mode: UPSERT } ) { details{items {status {id, code, message}}, operationStatus { code message } } } } }}"
}
]
}
2 changes: 1 addition & 1 deletion datasets/demo-shop/jobs/job_samples.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"base": "./datasets/demo-shop/data/sample-data/",
"options": {
"base": "./datasets/demo-shop/data/sample-data/",
"concurrency": 1
},
"tasks": [
Expand Down
2 changes: 2 additions & 0 deletions datasets/system/data/seed-data/organizations.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
id: system
name: SYSTEM
parentId: ""
meta:
modifiedBy: ""
owners:
- id: urn:restorecommerce:acs:names:ownerIndicatoryEntity
value: urn:restorecommerce:acs:model:organization.Organization
Expand Down
2 changes: 1 addition & 1 deletion datasets/system/jobs/job_extra.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"base": "./datasets/system/data/generated/",
"options": {
"base": "./datasets/system/data/generated/",
"concurrency": 1
},
"tasks": [
Expand Down
2 changes: 1 addition & 1 deletion datasets/system/jobs/job_identity.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"base": "./datasets/system/data/seed-data/",
"options": {
"base": "./datasets/system/data/seed-data/",
"concurrency": 1
},
"tasks": [
Expand Down
32 changes: 16 additions & 16 deletions datasets/system/jobs/job_master.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
{
"base": "./datasets/system/data/seed-data/",
"options": {
"base": "./datasets/system/data/seed-data/",
"concurrency": 1
},
"tasks": [
{
"name": "organizations",
"operation": "sync",
"filter": "organizations.yaml",
"mutation": "mutation mutateOrganizations($var: [IIoRestorecommerceOrganizationOrganization!]!){ master_data { organization { Mutate( input: { items: $var, totalCount: 0, mode: UPSERT } ) { details{items {status {id, code, message}}, operationStatus { code message } } } } }}"
},
{
"name": "countries",
"operation": "sync",
"filter": "countries.yaml",
"mutation": "mutation{ master_data { country { Mutate( input: { items: ${resource_list}, totalCount: 0, mode: UPSERT } ) { details{items {status {id, code, message}}, operationStatus { code message }} } } }}"
},
{
"name": "timezones",
"operation": "sync",
Expand All @@ -28,6 +16,18 @@
"filter": "locales.yaml",
"mutation": "mutation{ master_data { locale { Mutate( input: { items: ${resource_list}, totalCount: 0, mode: UPSERT } ) { details{items {status {id, code, message}}, operationStatus { code message }} } } }}"
},
{
"name": "countries",
"operation": "sync",
"filter": "countries.yaml",
"mutation": "mutation{ master_data { country { Mutate( input: { items: ${resource_list}, totalCount: 0, mode: UPSERT } ) { details{items {status {id, code, message}}, operationStatus { code message }} } } }}"
},
{
"name": "contact_point_types",
"operation": "sync",
"filter": "contact_point_types.yaml",
"mutation": "mutation{ master_data { contact_point_type { Mutate( input: { items: ${resource_list}, totalCount: 0, mode: UPSERT } ) { details{items {status {id, code, message}}, operationStatus { code message } } } } }}"
},
{
"name": "tax_types",
"operation": "sync",
Expand All @@ -47,10 +47,10 @@
"mutation": "mutation mutateCommands($var: [IIoRestorecommerceCommandCommand!]!){ master_data { command { Mutate( input: { items: $var, totalCount: 0, mode: UPSERT } ) { details{items {status {id, code, message}}, operationStatus { code message }} } } }}"
},
{
"name": "contact_point_types",
"name": "organizations",
"operation": "sync",
"filter": "contact_point_types.yaml",
"mutation": "mutation{ master_data { contact_point_type { Mutate( input: { items: ${resource_list}, totalCount: 0, mode: UPSERT } ) { details{items {status {id, code, message}}, operationStatus { code message } } } } }}"
"filter": "organizations.yaml",
"mutation": "mutation mutateOrganizations($var: [IIoRestorecommerceOrganizationOrganization!]!){ master_data { organization { Mutate( input: { items: $var, totalCount: 0, mode: UPSERT } ) { details{items {status {id, code, message}}, operationStatus { code message } } } } }}"
}
]
}
2 changes: 1 addition & 1 deletion datasets/system/jobs/job_rules.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"base": "./datasets/system/data/seed-data/",
"options": {
"base": "./datasets/system/data/seed-data/",
"concurrency": 1
},
"tasks": [
Expand Down

0 comments on commit 63b4ed2

Please sign in to comment.