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

[NEW UI] clean old UI #1119

Merged
merged 11 commits into from
Jan 22, 2025
Merged

Conversation

ga-devfront
Copy link
Contributor

@ga-devfront ga-devfront commented Jan 15, 2025

Questions Answers
Description? Clean all old files and function from old UI
Type? refactor
BC breaks? yes
Deprecations? no
Fixed ticket? N/A
Sponsor company @PrestaShopCorp
How to test? Try all process to be sure all work fine.

@ga-devfront ga-devfront added this to the 7.0.0 milestone Jan 15, 2025
@ga-devfront ga-devfront added the Blocked Status: The issue is blocked by another task label Jan 15, 2025
@ga-devfront ga-devfront removed the Blocked Status: The issue is blocked by another task label Jan 15, 2025
@M0rgan01 M0rgan01 force-pushed the feat/clean-old-UI branch 6 times, most recently from a744240 to e9861d0 Compare January 20, 2025 08:57
{
$filePath = $directoryPath . DIRECTORY_SEPARATOR . 'index.php';
if (!file_exists($filePath)) {
if (!copy(_PS_ROOT_DIR_ . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'index.php', $filePath)) {
Copy link
Member

Choose a reason for hiding this comment

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

Shall we use Filesystem::copy here and let it handle the generation of IOException in case of error?

</IfModule>
HTACCESS;
if (!file_exists($filePath)) {
if (!file_put_contents($filePath, $content)) {
Copy link
Member

Choose a reason for hiding this comment

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

we use the method Filesystem::dumpFile and let it generate the IOException in case of error?

@@ -311,13 +249,6 @@ public function init()
);
}
Copy link
Member

Choose a reason for hiding this comment

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

This block can be removed, a comment has been added on #1117

Quetzacoalt91
Quetzacoalt91 previously approved these changes Jan 20, 2025
Copy link

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.47.webm

Tested from :
1.7.8.8 to 8.2
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

@Quetzacoalt91 Quetzacoalt91 merged commit 2f21e9a into PrestaShop:dev Jan 22, 2025
37 checks passed
@ga-devfront ga-devfront deleted the feat/clean-old-UI branch January 22, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

5 participants