Skip to content

Commit 9999af1

Browse files
authored
refactor(sync-actions): rename terminology to allow/ignore (#1601)
1 parent fcbdaf0 commit 9999af1

File tree

14 files changed

+60
-58
lines changed

14 files changed

+60
-58
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ If you have any urgent issues regarding this repository please create a support
3232
We'd love to have your helping hand on this ecosystem! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for more information on our guidelines.
3333

3434
## Packages
35-
:warning: **Typescript SDK** is moved to a new [`repository`](https://github.com/commercetools/commercetools-typescript-sdks) now, this package will be deleted soon from the current repository.
3635

36+
:warning: **Typescript SDK** is moved to a new [`repository`](https://github.com/commercetools/commercetools-typescript-sdks) now, this package will be deleted soon from the current repository.
3737

3838
### SDK
3939

docs/sdk/Glossary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,6 @@ type SyncAction = {
109109

110110
type ActionGroup = {
111111
type: string,
112-
group: 'black' | 'white',
112+
group: 'ignore' | 'allow',
113113
}
114114
```

docs/sdk/api/syncActions.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
2525

2626
#### Arguments
2727

28-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
28+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
2929

3030
#### Usage example
3131

@@ -63,7 +63,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
6363

6464
#### Arguments
6565

66-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
66+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
6767

6868
#### Usage example
6969

@@ -102,7 +102,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
102102

103103
#### Arguments
104104

105-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
105+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
106106

107107
#### Usage example
108108

@@ -140,7 +140,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
140140

141141
#### Arguments
142142

143-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
143+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
144144

145145
#### Usage example
146146

@@ -178,7 +178,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
178178

179179
#### Arguments
180180

181-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
181+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
182182

183183
#### Usage example
184184

@@ -216,7 +216,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
216216

217217
#### Arguments
218218

219-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
219+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
220220

221221
#### Usage example
222222

@@ -254,7 +254,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
254254

255255
#### Arguments
256256

257-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
257+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
258258

259259
#### Usage example
260260

@@ -292,7 +292,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
292292

293293
#### Arguments
294294

295-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
295+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
296296

297297
#### Usage example
298298

@@ -332,7 +332,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
332332

333333
#### Arguments
334334

335-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
335+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
336336

337337
#### Usage example
338338

@@ -370,7 +370,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
370370

371371
#### Arguments
372372

373-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
373+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
374374

375375
#### Usage example
376376

@@ -408,7 +408,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
408408

409409
#### Arguments
410410

411-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
411+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
412412

413413
#### Usage example
414414

@@ -446,7 +446,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
446446

447447
#### Arguments
448448

449-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
449+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
450450
2. `config` _(Object)_: A configuration object to which has one of the following options:
451451

452452
| Key | Type | Required | Description |
@@ -599,7 +599,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
599599

600600
#### Arguments
601601

602-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
602+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
603603

604604
#### Usage example
605605

@@ -638,7 +638,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
638638

639639
#### Arguments
640640

641-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
641+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
642642

643643
#### Usage example
644644

@@ -677,7 +677,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
677677
678678
#### Arguments
679679
680-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
680+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
681681
682682
#### Usage example
683683
@@ -718,7 +718,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
718718
719719
#### Arguments
720720
721-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
721+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
722722
2. `config` _(Object)_: A configuration object to which has one of the following options:
723723
724724
| Key | Type | Required | Description |
@@ -768,7 +768,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
768768
769769
#### Arguments
770770
771-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
771+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
772772
773773
#### Usage example
774774
@@ -847,7 +847,7 @@ Creates a [sync action](/sdk/Glossary.md#syncaction) that allows to build API up
847847
848848
#### Arguments
849849
850-
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _blacklisted_ or _whitelisted_.
850+
1. `actionGroups` _(Array)_: A list of [action group](/sdk/Glossary.md#syncaction) in case some actions need to be _ignored_ or _allowed_.
851851
852852
#### Usage example
853853

packages/sync-actions/src/categories.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ export default (
6666
syncActionConfig: SyncActionConfig
6767
): SyncAction => {
6868
// actionGroupList contains information about which action groups
69-
// are white/black listed
69+
// are allowed or ignored
7070

7171
// createMapActionGroup returns function 'mapActionGroup' that takes params:
7272
// - action group name
7373
// - callback function that should return a list of actions that correspond
7474
// to the for the action group
7575

7676
// this resulting function mapActionGroup will call the callback function
77-
// for whitelisted action groups and return the return value of the callback
78-
// It will return an empty array for blacklisted action groups
77+
// for allowed action groups and return the return value of the callback
78+
// It will return an empty array for ignored action groups
7979
const mapActionGroup = createMapActionGroup(actionGroupList)
8080
const doMapActions = createCategoryMapActions(
8181
mapActionGroup,

packages/sync-actions/src/customers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,16 @@ export default (
7070
syncActionConfig: SyncActionConfig
7171
): SyncAction => {
7272
// actionGroupList contains information about which action groups
73-
// are white/black listed
73+
// are allowed or ignored
7474

7575
// createMapActionGroup returns function 'mapActionGroup' that takes params:
7676
// - action group name
7777
// - callback function that should return a list of actions that correspond
7878
// to the for the action group
7979

8080
// this resulting function mapActionGroup will call the callback function
81-
// for whitelisted action groups and return the return value of the callback
82-
// It will return an empty array for blacklisted action groups
81+
// for allowed action groups and return the return value of the callback
82+
// It will return an empty array for ignored action groups
8383
const mapActionGroup = createMapActionGroup(actionGroupList)
8484
const doMapActions = createCustomerMapActions(
8585
mapActionGroup,

packages/sync-actions/src/discount-codes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ function createDiscountCodesMapActions(mapActionGroup, syncActionConfig) {
2525

2626
export default (actionGroupList, syncActionConfig = {}) => {
2727
// actionGroupList contains information about which action groups
28-
// are white/black listed
28+
// are allowed or ignored
2929

3030
// createMapActionGroup returns function 'mapActionGroup' that takes params:
3131
// - action group name
3232
// - callback function that should return a list of actions that correspond
3333
// to the for the action group
3434

3535
// this resulting function mapActionGroup will call the callback function
36-
// for whitelisted action groups and return the return value of the callback
37-
// It will return an empty array for blacklisted action groups
36+
// for allowed action groups and return the return value of the callback
37+
// It will return an empty array for ignored action groups
3838
const mapActionGroup = createMapActionGroup(actionGroupList)
3939
const doMapActions = createDiscountCodesMapActions(
4040
mapActionGroup,

packages/sync-actions/src/inventories.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ export default (
4848
syncActionConfig: SyncActionConfig
4949
): SyncAction => {
5050
// actionGroupList contains information about which action groups
51-
// are white/black listed
51+
// are allowed or ignored
5252

5353
// createMapActionGroup returns function 'mapActionGroup' that takes params:
5454
// - action group name
5555
// - callback function that should return a list of actions that correspond
5656
// to the for the action group
5757

5858
// this resulting function mapActionGroup will call the callback function
59-
// for whitelisted action groups and return the return value of the callback
60-
// It will return an empty array for blacklisted action groups
59+
// for allowed action groups and return the return value of the callback
60+
// It will return an empty array for ignored action groups
6161
const mapActionGroup = createMapActionGroup(actionGroupList)
6262
const doMapActions = createInventoryMapActions(
6363
mapActionGroup,

packages/sync-actions/src/orders.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,16 @@ export default (
5858
syncActionConfig: SyncActionConfig
5959
): SyncAction => {
6060
// actionGroupList contains information about which action groups
61-
// are white/black listed
61+
// are allowed or ignored
6262

6363
// createMapActionGroup returns function 'mapActionGroup' that takes params:
6464
// - action group name
6565
// - callback function that should return a list of actions that correspond
6666
// to the for the action group
6767

6868
// this resulting function mapActionGroup will call the callback function
69-
// for whitelisted action groups and return the return value of the callback
70-
// It will return an empty array for blacklisted action groups
69+
// for allowed action groups and return the return value of the callback
70+
// It will return an empty array for ignored action groups
7171
const mapActionGroup = createMapActionGroup(actionGroupList)
7272
const doMapActions = createOrderMapActions(mapActionGroup, syncActionConfig)
7373
const buildActions = createBuildActions(diffpatcher.diff, doMapActions)

packages/sync-actions/src/shipping-methods.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ export default (
4949
syncActionConfig: SyncActionConfig
5050
): SyncAction => {
5151
// actionGroupList contains information about which action groups
52-
// are white/black listed
52+
// are allowed or ignored
5353

5454
// createMapActionGroup returns function 'mapActionGroup' that takes params:
5555
// - action group name
5656
// - callback function that should return a list of actions that correspond
5757
// to the for the action group
5858

5959
// this resulting function mapActionGroup will call the callback function
60-
// for whitelisted action groups and return the return value of the callback
61-
// It will return an empty array for blacklisted action groups
60+
// for allowed action groups and return the return value of the callback
61+
// It will return an empty array for ignored action groups
6262
const mapActionGroup = createMapActionGroup(actionGroupList)
6363
const doMapActions = createShippingMethodsMapActions(
6464
mapActionGroup,

packages/sync-actions/src/tax-categories.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ export default (
5050
syncActionConfig: SyncActionConfig
5151
): SyncAction => {
5252
// config contains information about which action groups
53-
// are white/black listed
53+
// are allowed or ignored
5454

5555
// createMapActionGroup returns function 'mapActionGroup' that takes params:
5656
// - action group name
5757
// - callback function that should return a list of actions that correspond
5858
// to the for the action group
5959

6060
// this resulting function mapActionGroup will call the callback function
61-
// for whitelisted action groups and return the return value of the callback
62-
// It will return an empty array for blacklisted action groups
61+
// for allowed action groups and return the return value of the callback
62+
// It will return an empty array for ignored action groups
6363
const mapActionGroup = createMapActionGroup(actionGroupList)
6464
const doMapActions = createTaxCategoriesMapActions(
6565
mapActionGroup,

0 commit comments

Comments
 (0)