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

Enable symfony layout feature flag by default #35180

Merged
merged 4 commits into from Jan 26, 2024

Conversation

jolelievre
Copy link
Contributor

@jolelievre jolelievre commented Jan 26, 2024

Questions Answers
Branch? develop
Description?
Type? new feature
Category? BO
BC breaks? no
Deprecations? no
How to test? Ci green and UI tests green
Symfony layout: https://github.com/jolelievre/ga.tests.ui.pr/actions/runs/7670270819
Legacy layout: https://github.com/jolelievre/ga.tests.ui.pr/actions/runs/7670297902
UI Tests
Fixed issue or discussion? ~
Related PRs ~
Sponsor company ~

@jolelievre jolelievre requested a review from a team as a code owner January 26, 2024 09:24
@prestonBot
Copy link
Collaborator

Hi, thanks for this contribution!

I found some issues with the Pull Request description:

  • The description shouldn't be empty.
  • Your pull request does not seem to fix any issue, consider creating one (see note below) and linking it by writing Fixes #1234.

Would you mind having a look at it? This will help us understand how interesting your contribution is, thank you very much!

About linked issues

Please consider opening an issue before submitting a Pull Request:

  • If it's a bug fix, it helps maintainers verify that the bug is effectively due to a defect in the code, and that it hasn't been fixed already.
  • It can help trigger a discussion about the best implementation path before a single line of code is written.
  • It may lead the Core Product team to mark that issue as a priority, further attracting the maintainers' attention.

(Note: this is an automated message, but answering it will reach a real human)

@prestonBot prestonBot added develop Branch Feature Type: New Feature labels Jan 26, 2024
Copy link
Contributor

@Hlavtox Hlavtox left a comment

Choose a reason for hiding this comment

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

There are some tiny issues:

Language code is encoded:

var full_language_code = 'en\u002Dus';
var full_cldr_language_code = 'en\u002Dus';

changeFormLanguageUrl missing, is it needed?

@ps-jarvis ps-jarvis added the Waiting for author Status: action required, waiting for author feedback label Jan 26, 2024
@jolelievre jolelievre marked this pull request as draft January 26, 2024 13:08
@jolelievre
Copy link
Contributor Author

jolelievre commented Jan 26, 2024

I just checked changeFormLanguageUrl is correctly injected in legacy pages (even with symfony layout) thanks to the setMedia that adds it I'm gonna remove the forced escape on the manual variables though

By the way changeFormLanguageUrl seems to be used only when PS_BO_ALLOW_EMPLOYEE_FORM_LANG is enabled in configuration, this configuration is not even the the default data anymore and it can't be edited either from the BO Seems like an old feature, only used on legacy pages

@prestashop-issue-bot prestashop-issue-bot bot removed the Waiting for author Status: action required, waiting for author feedback label Jan 26, 2024
@Hlavtox
Copy link
Contributor

Hlavtox commented Jan 26, 2024

@jolelievre I digged in and the feature is used. If you go to Advanced parameters >Employees and enable "Memorize the language used in Admin panel forms", it will enable PS_BO_ALLOW_EMPLOYEE_FORM_LANG. Anyway, good then.

So we fix the encoding and then it's ready. :-)

@jolelievre jolelievre marked this pull request as ready for review January 26, 2024 15:16
@M0rgan01 M0rgan01 added this to the 9.0.0 milestone Jan 26, 2024
@jolelievre
Copy link
Contributor Author

No QA for this one even though it enables the new symfony layout on the branch This will allow us to getearly feedback And a full manual QA is planned after we finish upgrading the remaining dependencies (removal of sensio framework extra bundle and upgrade of ApiPlatform)

@jolelievre jolelievre merged commit 9f3925f into PrestaShop:develop Jan 26, 2024
23 checks passed
@jolelievre jolelievre deleted the default-symfony-layout branch January 26, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
develop Branch Feature Type: New Feature
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

6 participants