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

Improved lastname anonymization #149

Merged
merged 1 commit into from Dec 9, 2022
Merged

Conversation

kpodemski
Copy link
Contributor

Questions Answers
Description? Anonymization now works for guests and customers
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#30345.
How to test? Please indicate how to best verify that this PR is correct.

Copy link
Contributor

@matks matks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code seems ok but I think we need to help developers to understand this new logic. Maybe add a comment or create a private method with a very explicit name?

Also PHPStan is not happy

 -- ------------------------------------------------------------------ 
     Error                                                             
 -- ------------------------------------------------------------------ 
     Ignored error pattern #Access to an undefined property            
     Cookie::\$id_customer.# was not matched in reported errors.       
     Ignored error pattern #Access to an undefined property            
     Cookie::\$id_guest.# was not matched in reported errors.          
     Ignored error pattern #Access to an undefined property            
     HelperList::\$list_id.# was not matched in reported errors.       
     Ignored error pattern #Access to an undefined property            
     HelperList::\$shopLinkType.# was not matched in reported errors.  
 -- ------------------------------------------------------------------ 

Copy link
Contributor

@leemyongpakvn leemyongpakvn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as old code has 1 isset check at line 67

controllers/front/ListComments.php Outdated Show resolved Hide resolved
controllers/front/ListComments.php Outdated Show resolved Hide resolved
fixes

remove not needed checks

php 5.6 support

fix wrong variable name
@HanaRebaiQA
Copy link

HanaRebaiQA commented Dec 9, 2022

Hello @kpodemski

Thanks for your PR. Can we have a second approve before starting testing following @micka-fdz 'feedback review?

Copy link

@MhiriFaten MhiriFaten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @kpodemski ,

I have checked your PR, the issue is well fixed!

Untitled_.Dec.9.2022.3_33.PM.webm

So it's QA approved ✔️

Many thanks !

@Hlavtox Hlavtox added this to the 5.0.3 milestone Dec 9, 2022
@Hlavtox Hlavtox merged commit 64fc935 into PrestaShop:dev Dec 9, 2022
@Hlavtox
Copy link
Contributor

Hlavtox commented Dec 9, 2022

Thank you @kpodemski!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
8 participants