Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.0.0 #205

Merged
merged 107 commits into from
Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
23ed4ff
load assets correct dir for javascript files
Markus-Gurkcity Jan 27, 2023
d4cb5f1
remove isset condition because variables always set
Markus-Gurkcity Jan 27, 2023
3df7e29
Update controllers/front/FrontAjaxGdpr.php
Markus-Gurkcity Jan 31, 2023
bca23f8
Update controllers/front/FrontAjaxGdpr.php
Markus-Gurkcity Jan 31, 2023
8ce7eed
Revert "Remove "customer_link" replaced in Tpl with Helper"
atomiix Feb 1, 2023
27cdea3
Handle both legacy & symfony customer routes
atomiix Feb 1, 2023
498ccb7
Merge pull request #186 from atomiix/fix/31001
nicosomb Feb 3, 2023
654fb18
Add badges to README
justeen35 Feb 4, 2023
5336fba
Merge pull request #187 from justeen35/patch-1
nicosomb Feb 5, 2023
d49fa6a
Merge pull request #184 from Markus-Gurkcity/jsdir
kpodemski Feb 20, 2023
f263e2a
Merge pull request #185 from Markus-Gurkcity/gdprajax
kpodemski Feb 22, 2023
05f3fc8
feat: add base of new logger
fox-john Feb 23, 2023
58a124a
feat: finish logger integration php
fox-john Feb 23, 2023
7eba5a1
feat: update migrations
fox-john Feb 24, 2023
b0e4086
feat: finish logger
fox-john Feb 27, 2023
197213b
fix: naming of module
fox-john Feb 27, 2023
6ae454a
feat: add final base of code for export
fox-john Feb 28, 2023
349ee63
feat: rework back module
fox-john Feb 28, 2023
725c463
fix: concat sql function
fox-john Mar 1, 2023
3febb10
refactor: front controller
fox-john Mar 1, 2023
a0361b7
fix: php doc
fox-john Mar 1, 2023
670ce4a
feat: update translations for csv
fox-john Mar 2, 2023
44e519e
feat: rework export to pdf
fox-john Mar 2, 2023
20e2eb7
refactor: tpl for mail
fox-john Mar 3, 2023
2b8d572
refacotr: delete old translations
fox-john Mar 3, 2023
bee3d92
refactor: tpl for pdf
fox-john Mar 3, 2023
dd8a2e7
feat: change all translation key
fox-john Mar 3, 2023
a1f53a6
refactor: change file name
fox-john Mar 3, 2023
42203d3
refactor: move all lib into another folder
fox-john Mar 3, 2023
d246932
fix: last but not least fix
fox-john Mar 3, 2023
4af01f2
feat: rework export to pdf
fox-john Mar 6, 2023
d00d301
feat: add deletion of customer
fox-john Mar 6, 2023
deb29f7
feat: move olds controllers
fox-john Mar 8, 2023
936a197
refactor: revert tpl transformation
fox-john Mar 8, 2023
f353f33
refactor(php): wip - convert legacy controller to new controller
fox-john Mar 10, 2023
e962e81
feat: consent collecting
fox-john Mar 15, 2023
45a54b4
fix: php-cs-fixer and phpstan
fox-john Mar 20, 2023
b6ae017
fix: autoindex
fox-john Mar 20, 2023
4290df2
fix: after review
fox-john Mar 20, 2023
9509219
fix: remove php-cs-fixer cache file
fox-john Mar 21, 2023
8768c1c
fix: php-7-2 errors
fox-john Mar 21, 2023
09a7bcd
fix: last bug
fox-john Mar 21, 2023
75d22f1
fix: error message appears even if the search is successful
fox-john Mar 22, 2023
f19d155
fix: message show only when request is finished
fox-john Mar 22, 2023
73a8321
fix: php-stan error
fox-john Mar 22, 2023
2fb4ee3
fix: php-cs-fixer for ci
fox-john Mar 22, 2023
f6c03e5
fix: php-stan version
fox-john Mar 22, 2023
eeb5ef7
fix: php-stan and php-cs-fixer
fox-john Mar 23, 2023
4d8d195
fix: last error with php-stan and remove cache fil for cs-fixer
fox-john Mar 23, 2023
77bdecf
chore: update .gitignore
fox-john Mar 23, 2023
4d4cf6e
Merge pull request #189 from fox-john/feature/refactor-code-base
nicosomb Mar 23, 2023
4edd243
feat: change declarations for BO
fox-john Mar 22, 2023
fe78eb9
feat: change declarations for FO
fox-john Mar 22, 2023
786dc09
chore: add information message
fox-john Mar 22, 2023
d3b2357
refactor: update service injection
fox-john Mar 23, 2023
8463b49
fix: service injection
fox-john Mar 23, 2023
8e7c840
fix: php-stan and php-cs-fixer
fox-john Mar 23, 2023
6ba4118
docs: update pdf doc files
fox-john Mar 23, 2023
d4d23c2
fix: remove old table before install
fox-john Mar 23, 2023
8d2506c
Merge pull request #192 from fox-john/feature/update-doc-files
jolelievre Mar 23, 2023
1044e75
chore: update autoload of composer
fox-john Mar 23, 2023
ee866bb
fix: remove 'exclude-from-clasmap' property into composer file
fox-john Mar 23, 2023
2b48479
Merge pull request #191 from fox-john/feature/change-service-declarat…
nicosomb Mar 24, 2023
aab4654
Merge pull request #194 from fox-john/fix/psr-4-error
lartist Mar 27, 2023
6d1657e
fix: add composer validate in php.yml
fox-john Mar 27, 2023
1b4310a
Merge pull request #195 from fox-john/feature/add-composer-validate-t…
jolelievre Mar 27, 2023
e7ca89f
fix: add entity repository
fox-john Mar 22, 2023
115afa9
fix: remove extra code
fox-john Mar 23, 2023
34aa0b3
fix: php-stan
fox-john Mar 27, 2023
4f48d67
fix: problem on insert into bdd
fox-john Mar 27, 2023
ec547fd
fix: remove useless service
fox-john Mar 27, 2023
33f6193
fix: error with export pdf
fox-john Mar 27, 2023
5b5f561
fix: php-stan
fox-john Mar 27, 2023
e128ba4
chore: relaunch ci
fox-john Mar 27, 2023
094b7dc
Merge pull request #193 from fox-john/fix/entity-repository
lartist Mar 28, 2023
2d5b699
fix: docs translations
fox-john Mar 27, 2023
6c34ceb
feat: change scandir by symfony finder
fox-john Mar 27, 2023
3af0f3b
fix: after review
fox-john Mar 27, 2023
82f7ae1
refactor: use design pattern strategy in front and back
fox-john Mar 29, 2023
4d5506c
fix: naming of files
fox-john Mar 29, 2023
b01447d
refactor: reorganize all strategies
fox-john Mar 29, 2023
5e37db5
refactor: add front responder strategy
fox-john Mar 29, 2023
420f450
fix: php-cs-fixer and php-stan
fox-john Mar 29, 2023
71f701d
fix: php error
fox-john Mar 29, 2023
6744c90
Merge pull request #197 from fox-john/feature/use-symfony-finder
nicosomb Mar 30, 2023
1618c35
Merge pull request #199 from fox-john/feature/use-strategy-pattern
nicosomb Mar 30, 2023
f8aba4e
Merge pull request #196 from fox-john/fix/translations-in-docs
nicosomb Mar 30, 2023
20f4ef3
fix: revert autowire service declarations
fox-john Apr 4, 2023
63e771e
fix: download invoices
fox-john Apr 4, 2023
47fe51a
Merge pull request #203 from fox-john/fix/revert-autowire
lartist Apr 4, 2023
94c813f
chore: remove Router instance in controllers
fox-john Mar 30, 2023
2584303
Fix path to sql install and update files
Apr 4, 2023
aa2b73d
Fix wordings
Mar 31, 2023
a2473c8
fixes after review and migrate every domain to Modules.Psgdpr.Shop or…
Mar 31, 2023
528facb
fix: search user
fox-john Apr 5, 2023
11818cc
Merge pull request #200 from fox-john/feature/change-url-generation-m…
lartist Apr 5, 2023
f4c360d
Merge pull request #204 from fox-john/fix-path-to-sql-install-and-update
lartist Apr 5, 2023
a813df6
Merge pull request #201 from lartist/fix-wordings
lartist Apr 5, 2023
dc8a199
refactor: update response for customer controller
fox-john Mar 27, 2023
fd43a0a
fix: error with jsonresponse
fox-john Mar 27, 2023
c668fbe
refactor: change jsonresponse by ->json
fox-john Mar 28, 2023
8ae0dd3
chore: update customer controller after rebase
fox-john Mar 30, 2023
f7296ef
fix: phpstan & php-cs-fixer
fox-john Mar 30, 2023
fe986b3
fix: minor problem
fox-john Mar 30, 2023
d9f231e
fix: after review
fox-john Mar 30, 2023
e8c35bd
chore: rebase code
fox-john Apr 5, 2023
4cc9748
Merge pull request #198 from fox-john/feature/update-response-into-co…
lartist Apr 6, 2023
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
16 changes: 8 additions & 8 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ name: PHP tests
on: [push, pull_request]
jobs:
php-linter:
name: PHP Syntax check 5.6 => 8.1
name: PHP Syntax check 7.2 => 8.1
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.0.0

- name: PHP syntax checker 5.6
uses: prestashop/github-action-php-lint/5.6@master

- name: PHP syntax checker 7.2
uses: prestashop/github-action-php-lint/7.2@master

Expand All @@ -32,7 +29,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: "7.2"

- name: Checkout
uses: actions/checkout@v2.0.0
Expand All @@ -47,18 +44,18 @@ jobs:
run: composer install

- name: Run PHP-CS-Fixer
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no --diff-format udiff
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no
phpstan:
name: PHPStan
runs-on: ubuntu-latest
strategy:
matrix:
presta-versions: ['1.7.0.6', '1.7.1.2', '1.7.2.5', '1.7.3.4', '1.7.4.4', '1.7.5.1', '1.7.6', '1.7.7', '1.7.8', 'latest']
presta-versions: ["8.0", "latest"]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: "7.2"

- name: Checkout
uses: actions/checkout@v2.0.0
Expand All @@ -77,6 +74,9 @@ jobs:
path: ~/.composer/cache
key: php-composer-cache

- name: Check composer
run: composer validate

- run: composer install

# Docker images prestashop/prestashop may be used, even if the shop remains uninstalled
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ tests/php/coverage
config_*.xml
.php_cs.cache
.idea
.php-cs-fixer.cache
File renamed without changes.
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
LOCAL_USER_UID ?= $(shell id -u)
LOCAL_USER_GID ?= $(shell id -g)

DOCKER_COMPOSE_CMD ?= docker-compose --file "./docker/docker-compose.yml"

# target: default - Calling help by default
default: help

# target: help - Get help on this file
help:
@egrep "^#" Makefile

# target: php-tests - Launch all php tests/lints suite
tests:
php-tests

# target: php-cs-fixer-fix - Run php cs fixer fix
php-cs-fixer-fix:
${DOCKER_COMPOSE_CMD} run --rm php sh -c "vendor/bin/php-cs-fixer fix"

# target: php-cs-fixer-lint - Run php cs fixer dry run
php-cs-fixer-lint:
${DOCKER_COMPOSE_CMD} run --rm php sh -c "vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no"

# target: php-stan - Run php stan
php-stan:
docker run -tid --rm -v ps-volume:/var/www/html --name temp-ps prestashop/prestashop; docker run --rm --volumes-from temp-ps -v $(shell echo $(PWD)):/web/module -e _PS_ROOT_DIR_=/var/www/html --workdir=/web/module ghcr.io/phpstan/phpstan analyse --configuration=/web/module/tests/phpstan/phpstan.neon

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# PSGDPR

[![PHP tests](https://github.com/PrestaShop/psgdpr/actions/workflows/php.yml/badge.svg)](https://github.com/PrestaShop/psgdpr/actions/workflows/php.yml)
[![Latest Stable Version](https://poser.pugx.org/PrestaShop/psgdpr/v)](//packagist.org/packages/PrestaShop/psgdpr)
[![Total Downloads](https://poser.pugx.org/PrestaShop/psgdpr/downloads)](//packagist.org/packages/PrestaShop/psgdpr)

## About

Make your store comply with the General Data Protection Regulation (GDPR).
Expand Down
152 changes: 0 additions & 152 deletions classes/GDPRConsent.php

This file was deleted.

Loading