Skip to content

Commit 2f4dfd3

Browse files
authored
DSCS-197: obfuscating customerGroupCode as sha1(customerGroupId) (#231)
* obfuscating customerGroupCode as sha1(customerGroupId)
1 parent 9885c79 commit 2f4dfd3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ScopesDataExporter/Test/Integration/ScopesDataExporterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ final class ScopesDataExporterTest extends TestCase
3232
private const EXPECTED_CUSTOMER_GROUP_DATA = [
3333
[
3434
"customerGroupId" => "0",
35-
"customerGroupCode" => "NOT LOGGED IN",
35+
"customerGroupCode" => "b6589fc6ab0dc82cf12099d1c2d40ab994e8410c",
3636
"websites" => [
3737
["websiteId" => "1", "websiteCode" => "base"]
3838
]
3939
],
4040
[
4141
"customerGroupId" => "1",
42-
"customerGroupCode" => "General",
42+
"customerGroupCode" => "356a192b7913b04c54574d18c28d46e6395428ab",
4343
"websites" => [
4444
["websiteId" => 1, "websiteCode" => "base"]
4545
]

ScopesDataExporter/etc/query.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<query name="scopesCustomerGroup">
4646
<source name="customer_group">
4747
<attribute name="customer_group_id" alias="customerGroupId"/>
48-
<attribute name="customer_group_code" alias="customerGroupCode" />
48+
<attribute name="customer_group_id" alias="customerGroupCode" function="sha1"/>
4949
<filter glue="and">
5050
<condition attribute="customer_group_id" operator="in" type="placeholder">customerGroupId</condition>
5151
</filter>

0 commit comments

Comments
 (0)