feat(fulfillment): Shipping options, rules CRUD + rules based context filtering (#6455)
**What**
- Update shipping options with its rules and type
- create/update rules independently
- context based validation fundation
- 🔴 list shipping options with context rules fitlering will come in a separate pr to keep this one smaller
FIXES CORE-1743
FIXES CORE-1764
This commit is contained in:
committed by
GitHub
parent
78b6d46584
commit
788c4a1e36
@@ -60,7 +60,7 @@ export function internalModuleServiceFactory<
|
||||
}
|
||||
|
||||
static buildUniqueCompositeKeyValue(keys: string[], data: object) {
|
||||
return keys.map((k) => data[k]).join("_")
|
||||
return keys.map((k) => data[k]).join(":")
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -287,7 +287,7 @@ export function internalModuleServiceFactory<
|
||||
|
||||
;[...keySelectorDataMap.keys()].filter((key) => {
|
||||
if (!compositeKeysValuesForFoundEntities.has(key)) {
|
||||
const value = key.replace(/_/gi, " - ")
|
||||
const value = key.replace(/:/gi, " - ")
|
||||
missingEntityValues.push(value)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user