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

Migrate ObjectModel to Doctrine #622

Merged

Conversation

leemyongpakvn
Copy link
Contributor

Questions Answers
Description? Migrate ObjectModel-based classes/ReassuranceActivity to Doctrine src/*
Deprecate ReassuranceActivity and all of its functions.
Type? refactor
BC breaks? no
Deprecations? yes
Fixed ticket? PrestaShop/PrestaShop/discussions/34472
Sponsor company Your company or customer's name goes here (if applicable).
How to test? 1. Apply this PR changes.
2. In FO: clear browser cache & In BO: Performance > clear cache.
3. Check all module features in both FO and BO to make sure they work as usual, especially multilingual feature for block title/description/link.

@leemyongpakvn leemyongpakvn marked this pull request as draft November 15, 2023 08:23
@leemyongpakvn leemyongpakvn marked this pull request as ready for review November 15, 2023 09:11
@leemyongpakvn leemyongpakvn added this to the 6.0.0 milestone Nov 15, 2023
Copy link
Contributor

@matthieu-rolland matthieu-rolland left a comment

Choose a reason for hiding this comment

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

nice PR !

LGTM except a little nitpick of mine:

since this module's minimal compatibility is with PrestaShop 1.7.7, which has PHP 7.1 as a minimal version... I think it's ok (and good) to specify return types on functions directly, what do you think ?

@leemyongpakvn
Copy link
Contributor Author

leemyongpakvn commented Nov 16, 2023

@matthieu-rolland Thanks for reminding. I must dropped declare(strict_types=1) and direct return type due to failure of php-lint 7.1 yesterday. After checking again today, I see it was executed with php-lint 5.6 in fact.
php-lint 7.1 is fixed now, strict_types and direct return type come back, 100 lines of pure declare code are removed 👍

Copy link
Contributor

@matthieu-rolland matthieu-rolland left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@ps-jarvis ps-jarvis added the waiting for QA Status: Waiting for QA feedback label Nov 16, 2023
@leemyongpakvn leemyongpakvn removed the waiting for QA Status: Waiting for QA feedback label Nov 16, 2023
@leemyongpakvn leemyongpakvn marked this pull request as draft November 16, 2023 15:43
@leemyongpakvn
Copy link
Contributor Author

I have just found something wrong with Create new block ;)

@leemyongpakvn leemyongpakvn marked this pull request as ready for review November 17, 2023 01:00
@leemyongpakvn
Copy link
Contributor Author

It's ready to review again now.

@ps-jarvis ps-jarvis added the waiting for QA Status: Waiting for QA feedback label Nov 20, 2023
@florine2623 florine2623 self-assigned this Nov 22, 2023
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 @leemyongpakvn ,

Tested on 8.0, 8.1 and develop.

On all version of PS I have a fatal error.
Screenshot 2023-11-23 at 16 07 18

Screenshot 2023-11-23 at 16 08 20

Could you check ?
Thanks!

@florine2623 florine2623 added waiting for author Status: Waiting for Author Feedback and removed waiting for QA Status: Waiting for QA feedback labels Nov 23, 2023
@florine2623 florine2623 removed their assignment Nov 23, 2023
@leemyongpakvn
Copy link
Contributor Author

@florine2623 It is a well-known issue, old SF configs in var/cache does not contain new added service :) You can solve it by applying How to test's Step 2: BO > Performance > Clear Cache via Web browser, or running rm -rf /var/cache via Terminal.

@leemyongpakvn leemyongpakvn added waiting for QA Status: Waiting for QA feedback and removed waiting for author Status: Waiting for Author Feedback labels Nov 28, 2023
@AureRita AureRita self-assigned this Dec 4, 2023
Copy link

@AureRita AureRita left a comment

Choose a reason for hiding this comment

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

Hi @leemyongpakvn

Thank you for your PR, I tested it and it seems to works as you can see :

Untitled_.Dec.4.2023.3_06.PM.webm

Tested on 8.0.x / 8.1.x / develop

Because the PR seems to works as expected, It's QA ✔️

Thank you

@AureRita AureRita added QA ✔️ Status: QA-Approved and removed waiting for QA Status: Waiting for QA feedback labels Dec 4, 2023
@leemyongpakvn
Copy link
Contributor Author

Thanks @matthieu-rolland and @AureRita

@leemyongpakvn leemyongpakvn merged commit 5e49526 into PrestaShop:dev Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA ✔️ Status: QA-Approved
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants