Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
2331a16
Add state/status index to speed up list retrieval
Quazz Jun 28, 2022
079befc
Bulgaria translations (partial)
miraclebg Jul 22, 2022
3e1eb74
Chnages
miraclebg Jul 23, 2022
2905482
Translate /i18n/en_US.csv in bg_BG
transifex-integration[bot] Sep 5, 2022
95a22ce
Merge pull request #133 from opengento/translations_i18n-en-us-csv--m…
thomas-kl1 Sep 5, 2022
130f532
Merge pull request #131 from Quazz/indexes
thomas-kl1 Sep 6, 2022
8d61699
Add proper indexes + utf8mb4 index support
thomas-kl1 Sep 6, 2022
bb4aed0
Fix #128 erase already erased entities result in duplicated entries
thomas-kl1 Aug 13, 2022
db780a0
Reuse default cookie restriction mode
thomas-kl1 Sep 5, 2022
73d4b75
Remove deprecated CMS Block reference
thomas-kl1 Sep 5, 2022
9e8afc7
Add state/status index to speed up list retrieval
Quazz Jun 28, 2022
523a627
Add proper indexes + utf8mb4 index support
thomas-kl1 Sep 6, 2022
c01d049
Merge branch 'angrobg-master'
thomas-kl1 Sep 6, 2022
2f4f390
Translate /i18n/en_US.csv in bg_BG
transifex-integration[bot] Sep 6, 2022
fcb0a45
Merge pull request #134 from opengento/translations_i18n-en-us-csv--m…
thomas-kl1 Sep 6, 2022
1a8f274
Update languages list
thomas-kl1 Sep 6, 2022
d802c22
improve readme syntax
thomas-kl1 Sep 6, 2022
7794530
Fix email content and typos
thomas-kl1 Sep 6, 2022
f34976c
Translate /i18n/en_US.csv in fr_FR
transifex-integration[bot] Sep 6, 2022
4e7a09a
Merge pull request #135 from opengento/translations_i18n-en-us-csv--m…
thomas-kl1 Sep 6, 2022
3bf7c07
Translate /i18n/en_US.csv in nl_NL
transifex-integration[bot] Sep 6, 2022
3c1f19a
Merge pull request #136 from opengento/translations_i18n-en-us-csv--m…
thomas-kl1 Sep 6, 2022
ddec94f
Translate /i18n/en_US.csv in pl_PL
transifex-integration[bot] Sep 7, 2022
9d063ab
Merge pull request #137 from opengento/translations_i18n-en-us-csv--m…
thomas-kl1 Sep 7, 2022
7c05abb
Translate i18n/en_US.csv in th_TH
transifex-integration[bot] Mar 16, 2023
525d0fb
Merge pull request #139 from opengento/translations_i18n-en-us-csv--m…
thomas-kl1 Mar 16, 2023
6a49210
Fix zip filename typo
thomas-kl1 Aug 17, 2023
b1c03a0
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jan 28, 2024
b906d3d
Merge pull request #140 from opengento/translations_i18n-en-us-csv--m…
thomas-kl1 Jan 30, 2024
db16ac2
Add dasnish
thomas-kl1 Jan 30, 2024
5618a8c
Update FUNDING.yml
thomas-kl1 Mar 17, 2024
f951cba
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
451ae7e
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
2b7b64e
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
39c1a85
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
fb5622b
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
348a159
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
470d92a
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
f2edc16
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
b7de297
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
96d7857
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
a951fcb
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
279e6e5
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
68eadd4
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
f176bcb
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
ce1ed5b
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
d852731
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
bdb6df9
Translate i18n/en_US.csv in da_DK
transifex-integration[bot] Jul 23, 2025
2c7a1be
Merge pull request #157 from opengento/translations_i18n-en-us-csv--m…
thomas-kl1 Jul 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# These are supported funding model platforms

#github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: thomas_klein # Replace with a single Patreon username
#patreon: # Replace with a single Patreon username
#open_collective: # Replace with a single Open Collective username
#ko_fi: # Replace with a single Ko-fi username
#tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
#community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
#liberapay: # Replace with a single Liberapay username
#issuehunt: # Replace with a single IssueHunt username
#otechie: # Replace with a single Otechie username
custom: ['https://secure.payplug.com/p/jtN33xM']
custom: ['https://www.helloasso.com/associations/opengento/formulaires/1']
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
2 changes: 1 addition & 1 deletion Model/Export/ExportToFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(
public function export(ExportEntityInterface $exportEntity): string
{
$fileName = $this->prepareFileName($exportEntity);
$archiveFileName = $fileName . 'zip';
$archiveFileName = $fileName . '.zip';
$data = $this->processorFactory->get($exportEntity->getEntityType())->execute($exportEntity->getEntityId(), []);

foreach ($this->resolveExportRendererCodes() as $rendererCode) {
Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Packagist](https://img.shields.io/packagist/dm/opengento/module-gdpr.svg?style=flat-square)](https://packagist.org/packages/opengento/module-gdpr/stats)
[![Codacy Badge](https://img.shields.io/codacy/grade/e43739589ae249a58b4af6dfcd9c555a?style=flat-square)](https://www.codacy.com/gh/opengento/magento2-gdpr)

This extension fullfill the GDPR requirements for Magento 2.
This extension fulfill the GDPR requirements for Magento 2.

- [Setup](#setup)
- [Composer installation](#composer-installation)
Expand Down Expand Up @@ -42,9 +42,9 @@ bin/magento setup:upgrade

## Features

Screenshots are available at: [https://opengento.fr/magento2-gdpr/features](https://opengento.fr/magento2-gdpr/features)
**See the [screenshots](https://opengento.fr/magento2-gdpr/features) of the module's features.**

Users, guest and customer can:
### Users, guest and customer can:

* **[Art. 16 GDPR](https://gdpr-info.eu/art-16-gdpr/)** Edit their personal data (native in vanilla)

Expand All @@ -71,7 +71,7 @@ the idle time for the users before they are erase, and the sales information lif
Personal data export can be done in the order view, they must fill the guest form first to show their order.
* Cookie Policy in a disclosure popup are shown at the first time customer visit.

Details:
### Details:

- [x] Erasure: delete or anonymize specific data thanks to configurable settings in admin ui.
- [x] Configure which order can be erased, regarding their state and life time.
Expand All @@ -86,17 +86,21 @@ Details:
- [x] Notify the user when a GDPR action is performed, configure the template and sending settings.
- [x] Display the cookie disclosure pop-in and edit its content as you want.

Languages:
### Languages:

Every translations must be done here https://www.transifex.com/opengento/opengentomagento2-gdpr/
**Open contributions to translations can be done with [transifex](https://www.transifex.com/opengento/opengentomagento2-gdpr/).**

- [x] en_US ; English
- [x] bg_BG ; Bulgarian
- [x] de_DE ; German
- [x] en_US ; English
- [x] fr_FR ; French
- [x] nl_NL ; Dutch
- [x] it_IT ; Italian
- [x] nl_NL ; Dutch
- [x] pl_PL ; Polish
- [x] th_TH ; Thai
- [x] da_DK ; Danish

*Many thanks to the translators who contributed directly here or with transifex!*

## Settings

Expand Down
29 changes: 18 additions & 11 deletions etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" comment="Entity ID"/>
<column xsi:type="varchar" name="entity_type" length="255" nullable="false" comment="Entity Type"/>
<column xsi:type="timestamp" name="scheduled_at" nullable="false" comment="Scheduled At"/>
<column xsi:type="varchar" name="state" length="255" nullable="false" comment="State"/>
<column xsi:type="varchar" name="status" length="255" nullable="false" comment="Status"/>
<column xsi:type="varchar" name="state" length="191" nullable="false" comment="State"/>
<column xsi:type="varchar" name="status" length="191" nullable="false" comment="Status"/>
<column xsi:type="text" name="message" nullable="true" comment="Message"/>
<column xsi:type="timestamp" name="erased_at" nullable="true" comment="Erased At"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
Expand All @@ -22,17 +22,20 @@
<column name="entity_id"/>
<column name="entity_type"/>
</constraint>-->
<index referenceId="OPENGENTO_GDPR_ERASE_ENTITY_ENTITY_ID" indexType="btree">
<index referenceId="OPENGENTO_GDPR_ERASE_ENTITY_IDENTITY" indexType="btree">
<column name="entity_type"/>
<column name="entity_id"/>
</index>
<index referenceId="OPENGENTO_GDPR_ERASE_ENTITY_ENTITY_TYPE" indexType="btree">
<column name="entity_type"/>
<index referenceId="OPENGENTO_GDPR_ERASE_ENTITY_SCHEDULED_EXPORT" indexType="btree">
<column name="scheduled_at"/>
<column name="state"/>
<column name="status"/>
</index>
</table>
<table name="opengento_gdpr_export_entity" resource="default" engine="innodb" comment="Export Entity">
<column xsi:type="int" name="export_id" padding="11" unsigned="true" nullable="false" identity="true" comment="Export ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" comment="Entity ID"/>
<column xsi:type="varchar" name="entity_type" length="255" nullable="false" comment="Entity Type"/>
<column xsi:type="varchar" name="entity_type" length="191" nullable="false" comment="Entity Type"/>
<column xsi:type="varchar" name="file_name" length="255" nullable="false" comment="File Name"/>
<column xsi:type="text" name="file_path" nullable="true" comment="File Path"/>
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
Expand All @@ -41,20 +44,24 @@
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="export_id"/>
</constraint>
<index referenceId="OPENGENTO_GDPR_EXPORT_ENTITY_ENTITY_ID" indexType="btree">
<index referenceId="OPENGENTO_GDPR_EXPORT_ENTITY_IDENTITY" indexType="btree">
<column name="entity_id"/>
</index>
<index referenceId="OPENGENTO_GDPR_EXPORT_ENTITY_ENTITY_TYPE" indexType="btree">
<column name="entity_type"/>
</index>
<index referenceId="OPENGENTO_GDPR_EXPORT_ENTITY_EXPORTED_AT" indexType="btree">
<column name="exported_at"/>
</index>
<index referenceId="OPENGENTO_GDPR_EXPORT_ENTITY_EXPIRED_AT" indexType="btree">
<column name="expired_at"/>
</index>
</table>
<table name="opengento_gdpr_action_entity" resource="default" engine="innodb" comment="Action Entity">
<column xsi:type="int" name="action_id" padding="11" unsigned="true" nullable="false" identity="true" comment="Export ID"/>
<column xsi:type="varchar" name="type" length="255" nullable="false" comment="Type"/>
<column xsi:type="varchar" name="type" length="191" nullable="false" comment="Type"/>
<column xsi:type="text" name="performed_from" nullable="false" comment="Performed From"/>
<column xsi:type="text" name="performed_by" nullable="true" comment="Performed By"/>
<column xsi:type="timestamp" name="performed_at" nullable="false" comment="Performed At"/>
<column xsi:type="varchar" name="state" length="255" nullable="false" comment="State"/>
<column xsi:type="varchar" name="state" length="191" nullable="false" comment="State"/>
<column xsi:type="text" name="message" nullable="false" comment="Message"/>
<column xsi:type="text" name="parameters" nullable="false" comment="Parameters"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
Expand Down
9 changes: 7 additions & 2 deletions etc/db_schema_whitelist.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
},
"index": {
"OPENGENTO_GDPR_ERASE_ENTITY_ENTITY_ID": true,
"OPENGENTO_GDPR_ERASE_ENTITY_ENTITY_TYPE": true
"OPENGENTO_GDPR_ERASE_ENTITY_ENTITY_TYPE": true,
"OPENGENTO_GDPR_ERASE_ENTITY_ENTITY_TYPE_ENTITY_ID": true,
"OPENGENTO_GDPR_ERASE_ENTITY_SCHEDULED_AT_STATE_STATUS": true
},
"constraint": {
"PRIMARY": true,
Expand All @@ -32,7 +34,10 @@
},
"index": {
"OPENGENTO_GDPR_EXPORT_ENTITY_ENTITY_ID": true,
"OPENGENTO_GDPR_EXPORT_ENTITY_ENTITY_TYPE": true
"OPENGENTO_GDPR_EXPORT_ENTITY_ENTITY_TYPE": true,
"OPENGENTO_GDPR_EXPORT_ENTITY_ENTITY_ID_ENTITY_TYPE": true,
"OPENGENTO_GDPR_EXPORT_ENTITY_EXPORTED_AT": true,
"OPENGENTO_GDPR_EXPORT_ENTITY_EXPIRED_AT": true
},
"constraint": {
"PRIMARY": true
Expand Down
Loading
Loading