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

[MIDDLEWARE] page post update #1146

Merged

Conversation

ga-devfront
Copy link
Contributor

Questions Answers
Description? Add middleware for update page post update.
Type? new feature
BC breaks? no
Deprecations? no
Fixed ticket? N/A
Sponsor company @PrestaShopCorp
How to test? See internal ticket

@ga-devfront ga-devfront added the enhancement Type: Improvement label Jan 30, 2025
@ga-devfront ga-devfront added this to the 7.0.0 milestone Jan 30, 2025
Quetzacoalt91
Quetzacoalt91 previously approved these changes Jan 30, 2025
@AureRita AureRita self-assigned this Jan 30, 2025
Comment on lines 11 to 12
$activeUpdateLogFile = $this->upgradeContainer->getLogsState()->getActiveRestoreLogFile();
$activeUpdateLogPath = $this->upgradeContainer->getProperty($this->upgradeContainer::LOGS_PATH) . DIRECTORY_SEPARATOR . $activeUpdateLogFile;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$activeUpdateLogFile = $this->upgradeContainer->getLogsState()->getActiveRestoreLogFile();
$activeUpdateLogPath = $this->upgradeContainer->getProperty($this->upgradeContainer::LOGS_PATH) . DIRECTORY_SEPARATOR . $activeUpdateLogFile;
$activeUpdateLogFile = $this->upgradeContainer->getLogsService()->getLogsPath(TaskType::TASK_TYPE_UPDATE);

Copy link

sonarqubecloud bot commented Feb 3, 2025

Copy link
Contributor

@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 @ga-devfront

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

recording.59.webm

Tested from :
8.0.4 to 8.2
8.2 to 9.0.0
8.0.4 to 9.0.0

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

Thank you

@ga-devfront ga-devfront merged commit 8c8c4fd into PrestaShop:dev Feb 4, 2025
37 checks passed
@ga-devfront ga-devfront deleted the feat/middlware-page-post-update branch February 4, 2025 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type: Improvement QA ✔️
Projects
Status: Ready for review
Development

Successfully merging this pull request may close these issues.

4 participants