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

[BO] The ps_reminder module archived but still exists in email theme folder #27084

Closed
2 tasks done
mparvazi opened this issue Dec 24, 2021 · 6 comments · Fixed by #34309
Closed
2 tasks done

[BO] The ps_reminder module archived but still exists in email theme folder #27084

mparvazi opened this issue Dec 24, 2021 · 6 comments · Fixed by #34309
Labels
1.7.8.0 Affects versions BO Category: Back Office Customer reminder Module: ps_reminder Email theme Label: Which BO under menu is concerned Feature Type: New Feature Module Module Translations Label: Which BO under menu is concerned Verified The issue has been reproduced

Comments

@mparvazi
Copy link
Member

mparvazi commented Dec 24, 2021

Prerequisites

Describe the bug and add screenshots

The ps_reminder module has been archived but its twig layouts still exists in email theme folders:

PrestaShop/mails/themes/classic/modules/ps_reminder
PrestaShop/mails/themes/modern/modules/ps_reminder

After a fresh install of PS, the ps_reminder folder will be created in modules folder by email theme generator.

Expected behavior

If this module is no longer available and cannot be used by other modules, then its items should be removed.

Folders that should be deleted:
PrestaShop/mails/themes/classic/modules/ps_reminder
PrestaShop/mails/themes/modern/modules/ps_reminder

Files that should be reviewed:
PrestaShop/.gitignore
PrestaShop/tests/Integration/Core/MailTemplate/MailTemplateGeneratorTest.php
PrestaShop/tests/Unit/Core/MailTemplate/LayoutVariablesBuilderTest.php

Translation file that should be reviewed:
PrestaShop/translations/default/EmailsBody.xlf

Translation file that should be deleted:
PrestaShop/translations/default/ModulesReminderAdmin.xlf

Steps to reproduce

  1. Go to BO > Design > Email Theme
  2. Select a theme for preview
  3. The ps_reminder exists in grid table

PrestaShop version(s) where the bug happened

8.0

PHP version(s) where the bug happened

No response

If your bug is related to a module, specify its name and its version

ps_reminder

@mparvazi mparvazi added the Bug Type: Bug label Dec 24, 2021
@mparvazi mparvazi changed the title The ps_reminder module archived but still exists in email theme folder [BO] The ps_reminder module archived but still exists in email theme folder Dec 24, 2021
@HanaRebaiQA HanaRebaiQA added 1.7.8.0 Affects versions Customer reminder Module: ps_reminder Email theme Label: Which BO under menu is concerned Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification Regression Type: regression Verified The issue has been reproduced BO Category: Back Office labels Dec 24, 2021
@HanaRebaiQA HanaRebaiQA added this to Regression issues 1.7.8.x in Backlog Patch via automation Dec 24, 2021
@HanaRebaiQA
Copy link

Hello @mparvazi

Thanks for reporting this issue.
I did manage to reproduce the issue from PS1780, PS1781, PS178x & develop.
https://watch.screencastify.com/v/V7qQxRfRvjTm2tke78LO

It's a regression, because this issue is not reproduced on PS1778.
https://watch.screencastify.com/v/gy5oH4QRAB6Zvnfh3dZT

I’ll add this to the debug backlog so that it’s fixed.

Thank You!

@mparvazi
Copy link
Member Author

mparvazi commented Dec 24, 2021

Hello @HanaRebaiQA

The ps_reminder folder that is inside email themes renamed from followup to ps_reminder with this PR.

So that's why it's not exists in PS1778.

@hibatallahAouadni hibatallahAouadni added the Needs Specs Status: issue needs to be specified label Dec 24, 2021
@mparvazi
Copy link
Member Author

@hibatallahAouadni
I think this issue also is related to translations.

@hibatallahAouadni hibatallahAouadni added the Translations Label: Which BO under menu is concerned label Dec 27, 2021
@HanaRebaiQA HanaRebaiQA removed the Regression Type: regression label Dec 27, 2021
@MatShir MatShir added Improvement Type: Improvement and removed Bug Type: Bug Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification labels Dec 27, 2021
@MatShir
Copy link
Contributor

MatShir commented Dec 27, 2021

Nice catch @mparvazi, but here the cleaning code around the archived module is considered as an improvement. The code has no impact on the ecosystem, so this enhancement must be done on the development branch.

@MatShir MatShir removed this from Regression issues 1.7.8.x in Backlog Patch Dec 27, 2021
@mparvazi
Copy link
Member Author

@MatShir
I definitely agree with you!

@marionf marionf added Feature Type: New Feature and removed Improvement Type: Improvement labels Dec 28, 2021
@MatShir MatShir added the Module Module label Dec 28, 2021
@boubkerbribri
Copy link
Contributor

It's the same for followup module, there is a new folder added by this PR that should be deleted.

@prestashop-issue-bot prestashop-issue-bot bot removed the Needs Specs Status: issue needs to be specified label Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.8.0 Affects versions BO Category: Back Office Customer reminder Module: ps_reminder Email theme Label: Which BO under menu is concerned Feature Type: New Feature Module Module Translations Label: Which BO under menu is concerned Verified The issue has been reproduced
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants