Skip to content

Commit 6ebcc0d

Browse files
committed
fix default settings uid
1 parent cebc7c4 commit 6ebcc0d

File tree

3 files changed

+88
-92
lines changed

3 files changed

+88
-92
lines changed

Model/Config/Source/EraseComponents.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@ private function retrieveDelegateProcessors(): array
6161
$resolvers = $this->retrieveArgument($this->processorResolverFactoryClassName, 'processorResolvers', []);
6262

6363
foreach ($resolvers as $resolver) {
64-
$processorPool = $this->retrieveArgument($resolver, 'processorPool');
65-
66-
if ($processorPool) {
67-
$delegateProcessors[] = $this->retrieveArgument($processorPool, 'array', []);
68-
}
64+
$delegateProcessors[] = $this->retrieveArgument($resolver, 'processors');
6965
}
7066

7167
return array_keys(array_merge(...$delegateProcessors));

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![License: MIT](https://img.shields.io/github/license/opengento/magento2-gdpr.svg?style=flat-square)](./LICENSE)
55
[![Packagist](https://img.shields.io/packagist/dt/opengento/module-gdpr.svg?style=flat-square)](https://packagist.org/packages/opengento/module-gdpr/stats)
66
[![Packagist](https://img.shields.io/packagist/dm/opengento/module-gdpr.svg?style=flat-square)](https://packagist.org/packages/opengento/module-gdpr/stats)
7-
[![Codacy Badge](https://img.shields.io/codacy/grade/5c60490b77a14e288ed810bc5b5862ca?style=flat-square)](https://www.codacy.com/manual/thomas-klein/magento2-gdpr)
7+
[![Codacy Badge](https://img.shields.io/codacy/grade/e43739589ae249a58b4af6dfcd9c555a?style=flat-square)](https://www.codacy.com/gh/opengento/magento2-gdpr)
88

99
This extension fullfill the GDPR requirements for Magento 2.
1010

etc/config.xml

Lines changed: 86 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -17,105 +17,105 @@
1717
<anonymize>
1818
<customer_attributes>
1919
<![CDATA[{
20-
"_0":{"attribute":"email","anonymizer":"email"},
21-
"_1":{"attribute":"prefix","anonymizer":"alphaUpper"},
22-
"_2":{"attribute":"firstname","anonymizer":"anonymous"},
23-
"_3":{"attribute":"middlename","anonymizer":"anonymous"},
24-
"_4":{"attribute":"lastname","anonymizer":"anonymous"},
25-
"_5":{"attribute":"suffix","anonymizer":"alphaUpper"},
26-
"_6":{"attribute":"dob","anonymizer":"date"},
27-
"_7":{"attribute":"gender","anonymizer":"number"},
28-
"_8":{"attribute":"taxvat","anonymizer":"alphaNum"}
20+
"_opengento_gdpr_anonymize_ca_0":{"attribute":"email","anonymizer":"email"},
21+
"_opengento_gdpr_anonymize_ca_1":{"attribute":"prefix","anonymizer":"alphaUpper"},
22+
"_opengento_gdpr_anonymize_ca_2":{"attribute":"firstname","anonymizer":"anonymous"},
23+
"_opengento_gdpr_anonymize_ca_3":{"attribute":"middlename","anonymizer":"anonymous"},
24+
"_opengento_gdpr_anonymize_ca_4":{"attribute":"lastname","anonymizer":"anonymous"},
25+
"_opengento_gdpr_anonymize_ca_5":{"attribute":"suffix","anonymizer":"alphaUpper"},
26+
"_opengento_gdpr_anonymize_ca_6":{"attribute":"dob","anonymizer":"date"},
27+
"_opengento_gdpr_anonymize_ca_7":{"attribute":"gender","anonymizer":"number"},
28+
"_opengento_gdpr_anonymize_ca_8":{"attribute":"taxvat","anonymizer":"alphaNum"}
2929
}]]>
3030
</customer_attributes>
3131
<customer_address_attributes>
3232
<![CDATA[{
33-
"_0":{"attribute":"city","anonymizer":"alphaUpper"},
34-
"_1":{"attribute":"company","anonymizer":"anonymous"},
35-
"_2":{"attribute":"country_id","anonymizer":"nullValue"},
36-
"_3":{"attribute":"fax","anonymizer":"phone"},
37-
"_4":{"attribute":"prefix","anonymizer":"alphaUpper"},
38-
"_5":{"attribute":"firstname","anonymizer":"anonymous"},
39-
"_6":{"attribute":"lastname","anonymizer":"anonymous"},
40-
"_7":{"attribute":"middlename","anonymizer":"anonymous"},
41-
"_8":{"attribute":"suffix","anonymizer":"alphaUpper"},
42-
"_9":{"attribute":"postcode","anonymizer":"number"},
43-
"_10":{"attribute":"region","anonymizer":"nullValue"},
44-
"_11":{"attribute":"street","anonymizer":"street"},
45-
"_12":{"attribute":"telephone","anonymizer":"phone"},
46-
"_13":{"attribute":"vat_id","anonymizer":"alphaNum"}
33+
"_opengento_gdpr_anonymize_caa_0":{"attribute":"city","anonymizer":"alphaUpper"},
34+
"_opengento_gdpr_anonymize_caa_1":{"attribute":"company","anonymizer":"anonymous"},
35+
"_opengento_gdpr_anonymize_caa_2":{"attribute":"country_id","anonymizer":"nullValue"},
36+
"_opengento_gdpr_anonymize_caa_3":{"attribute":"fax","anonymizer":"phone"},
37+
"_opengento_gdpr_anonymize_caa_4":{"attribute":"prefix","anonymizer":"alphaUpper"},
38+
"_opengento_gdpr_anonymize_caa_5":{"attribute":"firstname","anonymizer":"anonymous"},
39+
"_opengento_gdpr_anonymize_caa_6":{"attribute":"lastname","anonymizer":"anonymous"},
40+
"_opengento_gdpr_anonymize_caa_7":{"attribute":"middlename","anonymizer":"anonymous"},
41+
"_opengento_gdpr_anonymize_caa_8":{"attribute":"suffix","anonymizer":"alphaUpper"},
42+
"_opengento_gdpr_anonymize_caa_9":{"attribute":"postcode","anonymizer":"number"},
43+
"_opengento_gdpr_anonymize_caa_10":{"attribute":"region","anonymizer":"nullValue"},
44+
"_opengento_gdpr_anonymize_caa_11":{"attribute":"street","anonymizer":"street"},
45+
"_opengento_gdpr_anonymize_caa_12":{"attribute":"telephone","anonymizer":"phone"},
46+
"_opengento_gdpr_anonymize_caa_13":{"attribute":"vat_id","anonymizer":"alphaNum"}
4747
}]]>
4848
</customer_address_attributes>
4949
<quote_attributes>
5050
<![CDATA[{
51-
"_0":{"attribute":"customer_email","anonymizer":"email"},
52-
"_1":{"attribute":"customer_prefix","anonymizer":"anonymous"},
53-
"_2":{"attribute":"customer_firstname","anonymizer":"anonymous"},
54-
"_3":{"attribute":"customer_middlename","anonymizer":"anonymous"},
55-
"_4":{"attribute":"customer_lastname","anonymizer":"anonymous"},
56-
"_5":{"attribute":"customer_suffix","anonymizer":"anonymous"},
57-
"_6":{"attribute":"customer_dob","anonymizer":"date"},
58-
"_7":{"attribute":"customer_gender","anonymizer":"number"},
59-
"_8":{"attribute":"customer_taxvat","anonymizer":"email"},
60-
"_9":{"attribute":"remote_ip","anonymizer":"alphaNum"}
51+
"_opengento_gdpr_anonymize_qa_0":{"attribute":"customer_email","anonymizer":"email"},
52+
"_opengento_gdpr_anonymize_qa_1":{"attribute":"customer_prefix","anonymizer":"anonymous"},
53+
"_opengento_gdpr_anonymize_qa_2":{"attribute":"customer_firstname","anonymizer":"anonymous"},
54+
"_opengento_gdpr_anonymize_qa_3":{"attribute":"customer_middlename","anonymizer":"anonymous"},
55+
"_opengento_gdpr_anonymize_qa_4":{"attribute":"customer_lastname","anonymizer":"anonymous"},
56+
"_opengento_gdpr_anonymize_qa_5":{"attribute":"customer_suffix","anonymizer":"anonymous"},
57+
"_opengento_gdpr_anonymize_qa_6":{"attribute":"customer_dob","anonymizer":"date"},
58+
"_opengento_gdpr_anonymize_qa_7":{"attribute":"customer_gender","anonymizer":"number"},
59+
"_opengento_gdpr_anonymize_qa_8":{"attribute":"customer_taxvat","anonymizer":"email"},
60+
"_opengento_gdpr_anonymize_qa_9":{"attribute":"remote_ip","anonymizer":"alphaNum"}
6161
}]]>
6262
</quote_attributes>
6363
<quote_address_attributes>
6464
<![CDATA[{
65-
"_0":{"attribute":"city","anonymizer":"alphaUpper"},
66-
"_1":{"attribute":"company","anonymizer":"anonymous"},
67-
"_2":{"attribute":"country_id","anonymizer":"nullValue"},
68-
"_3":{"attribute":"fax","anonymizer":"phone"},
69-
"_4":{"attribute":"email","anonymizer":"email"},
70-
"_5":{"attribute":"prefix","anonymizer":"alphaUpper"},
71-
"_6":{"attribute":"firstname","anonymizer":"anonymous"},
72-
"_7":{"attribute":"lastname","anonymizer":"anonymous"},
73-
"_8":{"attribute":"middlename","anonymizer":"anonymous"},
74-
"_9":{"attribute":"suffix","anonymizer":"alphaUpper"},
75-
"_10":{"attribute":"postcode","anonymizer":"number"},
76-
"_11":{"attribute":"region","anonymizer":"nullValue"},
77-
"_12":{"attribute":"street","anonymizer":"street"},
78-
"_13":{"attribute":"telephone","anonymizer":"phone"},
79-
"_14":{"attribute":"vat_id","anonymizer":"alphaNum"}
65+
"_opengento_gdpr_anonymize_qaa_0":{"attribute":"city","anonymizer":"alphaUpper"},
66+
"_opengento_gdpr_anonymize_qaa_1":{"attribute":"company","anonymizer":"anonymous"},
67+
"_opengento_gdpr_anonymize_qaa_2":{"attribute":"country_id","anonymizer":"nullValue"},
68+
"_opengento_gdpr_anonymize_qaa_3":{"attribute":"fax","anonymizer":"phone"},
69+
"_opengento_gdpr_anonymize_qaa_4":{"attribute":"email","anonymizer":"email"},
70+
"_opengento_gdpr_anonymize_qaa_5":{"attribute":"prefix","anonymizer":"alphaUpper"},
71+
"_opengento_gdpr_anonymize_qaa_6":{"attribute":"firstname","anonymizer":"anonymous"},
72+
"_opengento_gdpr_anonymize_qaa_7":{"attribute":"lastname","anonymizer":"anonymous"},
73+
"_opengento_gdpr_anonymize_qaa_8":{"attribute":"middlename","anonymizer":"anonymous"},
74+
"_opengento_gdpr_anonymize_qaa_9":{"attribute":"suffix","anonymizer":"alphaUpper"},
75+
"_opengento_gdpr_anonymize_qaa_10":{"attribute":"postcode","anonymizer":"number"},
76+
"_opengento_gdpr_anonymize_qaa_11":{"attribute":"region","anonymizer":"nullValue"},
77+
"_opengento_gdpr_anonymize_qaa_12":{"attribute":"street","anonymizer":"street"},
78+
"_opengento_gdpr_anonymize_qaa_13":{"attribute":"telephone","anonymizer":"phone"},
79+
"_opengento_gdpr_anonymize_qaa_14":{"attribute":"vat_id","anonymizer":"alphaNum"}
8080
}]]>
8181
</quote_address_attributes>
8282
<order_attributes>
8383
<![CDATA[{
84-
"_0":{"attribute":"customer_email","anonymizer":"email"},
85-
"_1":{"attribute":"customer_prefix","anonymizer":"anonymous"},
86-
"_2":{"attribute":"customer_firstname","anonymizer":"anonymous"},
87-
"_3":{"attribute":"customer_middlename","anonymizer":"anonymous"},
88-
"_4":{"attribute":"customer_lastname","anonymizer":"anonymous"},
89-
"_5":{"attribute":"customer_suffix","anonymizer":"anonymous"},
90-
"_6":{"attribute":"customer_dob","anonymizer":"date"},
91-
"_7":{"attribute":"customer_gender","anonymizer":"number"},
92-
"_8":{"attribute":"customer_taxvat","anonymizer":"email"},
93-
"_9":{"attribute":"remote_ip","anonymizer":"alphaNum"},
94-
"_10":{"attribute":"x_forwarded_for","anonymizer":"anonymous"}
95-
]]]>
84+
"_opengento_gdpr_anonymize_oa_0":{"attribute":"customer_email","anonymizer":"email"},
85+
"_opengento_gdpr_anonymize_oa_1":{"attribute":"customer_prefix","anonymizer":"anonymous"},
86+
"_opengento_gdpr_anonymize_oa_2":{"attribute":"customer_firstname","anonymizer":"anonymous"},
87+
"_opengento_gdpr_anonymize_oa_3":{"attribute":"customer_middlename","anonymizer":"anonymous"},
88+
"_opengento_gdpr_anonymize_oa_4":{"attribute":"customer_lastname","anonymizer":"anonymous"},
89+
"_opengento_gdpr_anonymize_oa_5":{"attribute":"customer_suffix","anonymizer":"anonymous"},
90+
"_opengento_gdpr_anonymize_oa_6":{"attribute":"customer_dob","anonymizer":"date"},
91+
"_opengento_gdpr_anonymize_oa_7":{"attribute":"customer_gender","anonymizer":"number"},
92+
"_opengento_gdpr_anonymize_oa_8":{"attribute":"customer_taxvat","anonymizer":"email"},
93+
"_opengento_gdpr_anonymize_oa_9":{"attribute":"remote_ip","anonymizer":"alphaNum"},
94+
"_opengento_gdpr_anonymize_oa_10":{"attribute":"x_forwarded_for","anonymizer":"anonymous"}
95+
}]]>
9696
</order_attributes>
9797
<order_address_attributes>
9898
<![CDATA[{
99-
"_0":{"attribute":"city","anonymizer":"alphaUpper"},
100-
"_1":{"attribute":"company","anonymizer":"anonymous"},
101-
"_2":{"attribute":"country_id","anonymizer":"nullValue"},
102-
"_3":{"attribute":"fax","anonymizer":"phone"},
103-
"_4":{"attribute":"email","anonymizer":"email"},
104-
"_5":{"attribute":"prefix","anonymizer":"alphaUpper"},
105-
"_6":{"attribute":"firstname","anonymizer":"anonymous"},
106-
"_7":{"attribute":"lastname","anonymizer":"anonymous"},
107-
"_8":{"attribute":"middlename","anonymizer":"anonymous"},
108-
"_9":{"attribute":"suffix","anonymizer":"alphaUpper"},
109-
"_10":{"attribute":"postcode","anonymizer":"number"},
110-
"_11":{"attribute":"region","anonymizer":"nullValue"},
111-
"_12":{"attribute":"street","anonymizer":"street"},
112-
"_13":{"attribute":"telephone","anonymizer":"phone"},
113-
"_14":{"attribute":"vat_id","anonymizer":"alphaNum"}
99+
"_opengento_gdpr_anonymize_oaa_0":{"attribute":"city","anonymizer":"alphaUpper"},
100+
"_opengento_gdpr_anonymize_oaa_1":{"attribute":"company","anonymizer":"anonymous"},
101+
"_opengento_gdpr_anonymize_oaa_2":{"attribute":"country_id","anonymizer":"nullValue"},
102+
"_opengento_gdpr_anonymize_oaa_3":{"attribute":"fax","anonymizer":"phone"},
103+
"_opengento_gdpr_anonymize_oaa_4":{"attribute":"email","anonymizer":"email"},
104+
"_opengento_gdpr_anonymize_oaa_5":{"attribute":"prefix","anonymizer":"alphaUpper"},
105+
"_opengento_gdpr_anonymize_oaa_6":{"attribute":"firstname","anonymizer":"anonymous"},
106+
"_opengento_gdpr_anonymize_oaa_7":{"attribute":"lastname","anonymizer":"anonymous"},
107+
"_opengento_gdpr_anonymize_oaa_8":{"attribute":"middlename","anonymizer":"anonymous"},
108+
"_opengento_gdpr_anonymize_oaa_9":{"attribute":"suffix","anonymizer":"alphaUpper"},
109+
"_opengento_gdpr_anonymize_oaa_10":{"attribute":"postcode","anonymizer":"number"},
110+
"_opengento_gdpr_anonymize_oaa_11":{"attribute":"region","anonymizer":"nullValue"},
111+
"_opengento_gdpr_anonymize_oaa_12":{"attribute":"street","anonymizer":"street"},
112+
"_opengento_gdpr_anonymize_oaa_13":{"attribute":"telephone","anonymizer":"phone"},
113+
"_opengento_gdpr_anonymize_oaa_14":{"attribute":"vat_id","anonymizer":"alphaNum"}
114114
}]]>
115115
</order_address_attributes>
116116
<subscriber_attributes>
117117
<![CDATA[{
118-
"_0":{"attribute":"email","anonymizer":"email"}
118+
"_opengento_gdpr_anonymize_sa_0":{"attribute":"email","anonymizer":"email"}
119119
}]]>
120120
</subscriber_attributes>
121121
</anonymize>
@@ -130,19 +130,19 @@
130130
<remove_customer>1</remove_customer>
131131
<customer_components_processors>
132132
<![CDATA[{
133-
"_0":{"component":"customer","processor":"anonymize"},
134-
"_1":{"component":"customer_address","processor":"anonymize"},
135-
"_2":{"component":"quote","processor":"delete"},
136-
"_3":{"component":"order","processor":"anonymize"},
137-
"_4":{"component":"subscriber","processor":"delete"}
138-
]]]>
133+
"_opengento_gdpr_erasure_ccp_0":{"component":"customer","processor":"anonymize"},
134+
"_opengento_gdpr_erasure_ccp_1":{"component":"customer_address","processor":"anonymize"},
135+
"_opengento_gdpr_erasure_ccp_2":{"component":"quote","processor":"delete"},
136+
"_opengento_gdpr_erasure_ccp_3":{"component":"order","processor":"anonymize"},
137+
"_opengento_gdpr_erasure_ccp_4":{"component":"subscriber","processor":"delete"}
138+
}]]>
139139
</customer_components_processors>
140140
<guest_components_processors>
141141
<![CDATA[{
142-
"_0":{"component":"quote","processor":"delete"},
143-
"_1":{"component":"order","processor":"anonymize"},
144-
"_2":{"component":"subscriber","processor":"delete"}
145-
]]]>
142+
"_opengento_gdpr_erasure_gcp_0":{"component":"quote","processor":"delete"},
143+
"_opengento_gdpr_erasure_gcp_1":{"component":"order","processor":"anonymize"},
144+
"_opengento_gdpr_erasure_gcp_2":{"component":"subscriber","processor":"delete"}
145+
}]]>
146146
</guest_components_processors>
147147
</erasure>
148148
<export>

0 commit comments

Comments
 (0)