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

Customer anonymisation if reviews coming from version 3 #92

Merged

Conversation

jf-viguier
Copy link
Contributor

@jf-viguier jf-viguier commented Dec 17, 2020

Questions Answers
Description? If registered customer : return customer name instead of using customer_name of comment. By the way, it's better not to return full name for gdpr concern.
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#22481
How to test? it's described on the issue

This fix is included, it's needed to make it works https://github.com/PrestaShop/productcomments/pull/89/files
I've also fixed a typo on isLastNameAnynomus

@jf-viguier
Copy link
Contributor Author

jf-viguier commented Dec 17, 2020

CS fixer returned "PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.4.*."
Can a maintainer fix this ?

Copy link
Contributor

@SimonGrn SimonGrn left a comment

Choose a reason for hiding this comment

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

Thank you @jf-viguier !
I fixed a small misspell in Anonymous.

controllers/front/ListComments.php Outdated Show resolved Hide resolved
controllers/front/ListComments.php Outdated Show resolved Hide resolved
@jf-viguier
Copy link
Contributor Author

Thank you @jf-viguier !
I fixed a small misspell in Anonymous.

Thanks

@PierreRambaud
Copy link
Contributor

I rebase your pull request for CS fixer :)

@jf-viguier
Copy link
Contributor Author

thanks @PierreRambaud, checks ok now. Ready for review.

@atomiix
Copy link
Contributor

atomiix commented Jan 4, 2021

Hi @jf-viguier, could you resolve the conflicting file please?

@jf-viguier
Copy link
Contributor Author

@atomiix, resolved

@atomiix
Copy link
Contributor

atomiix commented Jan 4, 2021

@jf-viguier I think you can remove your last commit, it doesn't seem to contain any change 🤔

@jf-viguier
Copy link
Contributor Author

@atomiix, I don't understand, it was a conflit resolution on a variable.

jf-viguier and others added 3 commits January 5, 2021 11:23
Co-authored-by: Simon G. <49909275+SimonGrn@users.noreply.github.com>
Co-authored-by: Simon G. <49909275+SimonGrn@users.noreply.github.com>
@atomiix atomiix force-pushed the anonymisation-issue-oldmodule branch from beddfc7 to 6567b96 Compare January 5, 2021 10:27
@atomiix
Copy link
Contributor

atomiix commented Jan 5, 2021

@jf-viguier I don't know what happened either 😅 but I just rebased it and it looks ok now!

@sarahdib
Copy link

sarahdib commented Feb 5, 2021

@jf-viguier
I didn't reproduce the issue but there is another issue
Step to reproduce :

  • Install prestashop 1.6.1.24
  • Install module product comment 3.6.0
  • Add a comment
  • Upgrade prestashop
  • Upgrade the porduct comment module to the last version
  • Go to FO
    image (10)

After adding a comment
Capture d’écran 2021-02-05 à 11 46 43

The bug appear with and without this pr

@jf-viguier
Copy link
Contributor Author

@sarahdib is your comment validated ? Is it in database ?

@sarahdib
Copy link

sarahdib commented Feb 8, 2021

@jf-viguier Yes the comment is validated and in database.

@Progi1984
Copy link
Member

@sarahdib Have you created an issue ?

@jf-viguier
Copy link
Contributor Author

@sarahdib with my pr here #107
You will be able to test all of this

@jf-viguier
Copy link
Contributor Author

@sarahdib can you test now with this pr and #107 ?

@sarahdib
Copy link

@matks this pr should not be in waiting for QA. We can test it if #107 is not approved and merged.

@jf-viguier
Copy link
Contributor Author

any news here ?

@Progi1984
Copy link
Member

@sarahdib is waiting for the #107 (WFAuthor). Could you contact @khouloudbelguith on Slack for discussing about this PR (and bug related) ?

@hibatallahAouadni
Copy link

hibatallahAouadni commented Jan 17, 2022

As this PR #107 has been approved, I remove the Blocked label.
But we have to wait for the PR #107 to be merged so that we can add the waiting for QA label.

@Progi1984
Copy link
Member

@hibatallahAouadni It's merged.

@hibatallahAouadni hibatallahAouadni self-assigned this Jan 18, 2022
@hibatallahAouadni
Copy link

Hello @jf-viguier

Thanks for your hard working 👏
For the comments by logged-in customers, their last names are anonymized ✔️
For the comments by guests, their last names are not anonymized ✔️

pr_92.mp4

PS: sorry about check the second option as not correct in the screen record 😅

Well then, LGTM and QA ✔️
Thanks!

@PierreRambaud PierreRambaud merged commit 23904e5 into PrestaShop:dev Jan 20, 2022
@PierreRambaud
Copy link
Contributor

Thank you @jf-viguier

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

Successfully merging this pull request may close these issues.

productcomments module : Customer anonymisation doesn't work with reviews coming from version 3
10 participants