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 5.0.1 #135

Merged
merged 37 commits into from
Feb 10, 2022
Merged

Release 5.0.1 #135

merged 37 commits into from
Feb 10, 2022

Conversation

Progi1984
Copy link
Member

Questions Answers
Description? Release 5.0.1
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket? N/A
How to test? Launch a release test

jf-viguier and others added 30 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>
Bumps [prestashop/php-dev-tools](https://github.com/PrestaShop/php-dev-tools) from 3.16.0 to 3.16.1.
- [Release notes](https://github.com/PrestaShop/php-dev-tools/releases)
- [Commits](PrestaShop/php-dev-tools@v3.16.0...v3.16.1)

---
updated-dependencies:
- dependency-name: prestashop/php-dev-tools
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…ashop/php-dev-tools-3.16.1

Bump prestashop/php-dev-tools from 3.16.0 to 3.16.1
install version

Good version
Fix js error since displayGDPRConsent
switch from deprecated 'header' hook to 'displayHeader'
Missing changes for displayHeader hook
Improved Workflow Build Release
To prevent google from indexing the icon names use data-icon and css to show the icons
Co-authored-by: GoT <PierreRambaud@users.noreply.github.com>
Customer anonymisation if reviews coming from version 3
clotairer and others added 7 commits January 31, 2022 15:33
Align rating to the left on product list
Improved Github Action (Support PHP 5.6 => 8.1)
TypeError on addCommentGrades in case of empty request
Renders author name with a link if it is a customer
@Progi1984 Progi1984 added this to the 5.0.1 milestone Feb 10, 2022
@Progi1984 Progi1984 requested a review from a team February 10, 2022 10:37
Copy link

@saulaski saulaski left a comment

Choose a reason for hiding this comment

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

Only a few minor typos to fix

@@ -31,7 +31,7 @@ public function display()
{
$idProduct = (int) Tools::getValue('id_product');
$page = (int) Tools::getValue('page', 1);
$isLastNameAnynomus = Configuration::get('PRODUCT_COMMENTS_ANONYMISATION');
$isLastNameAnonymous = Configuration::get('PRODUCT_COMMENTS_ANONYMISATION');

Choose a reason for hiding this comment

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

Suggested change
$isLastNameAnonymous = Configuration::get('PRODUCT_COMMENTS_ANONYMISATION');
$isLastNameAnonymous = (bool) Configuration::get('PRODUCT_COMMENTS_ANONYMISATION');

@@ -181,4 +183,31 @@ private function validateComment(ProductComment $productComment)

return $errors;
}

/**
* Valdiate criterions values

Choose a reason for hiding this comment

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

Suggested change
* Valdiate criterions values
* Validate criterion values

*
* @todo manage validation for criterion restricted on categories or products
*
* @param array $criterions

Choose a reason for hiding this comment

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

The plural form of "criterion" is "criteria", not "criterions"

'viewcustomer' => 1,
]);

return '<a href="' . $linkToCustomerProfile . '">' . $value . '</a>';

Choose a reason for hiding this comment

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

Usually HTML escaping should be done here, not in the controller. But I understand changes should match legacy code.

@PierreRambaud
Copy link
Contributor

Only a few minor typos to fix

Unfortunately, this is a release pull request, changes need to be applied in different pull request to update the dev branch :)

Copy link
Contributor

@florine2623 florine2623 left a comment

Choose a reason for hiding this comment

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

Hello @Progi1984 ,

Thanks for the PR. Looking good to me, it is QA ✅

@florine2623 florine2623 self-assigned this Feb 10, 2022
@Progi1984 Progi1984 merged commit b2586be into master Feb 10, 2022
@Progi1984
Copy link
Member Author

Thanks @florine2623

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.

10 participants