-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Migrating the shop grid configuration to php #15419
base: 2.0
Are you sure you want to change the base?
Conversation
1cc0abe
to
cc8c992
Compare
Bunnyshell Preview Environment deployedIt will be automatically stopped in 4 hours. Use the command
Available commands:
|
2f7ecec
to
43e4c2c
Compare
@Florian-Merle I think this could be a problem with the expression language not working correctly? |
Hi, as #14449 (comment) Loic mentioned, this most likely should target 2.0. For example new workflow SM are specifically done in yaml instead of php for 1.13. |
43e4c2c
to
670065d
Compare
Rebased to 2.0. Sadly I still don't have a way to test the changes as I don't have a local development environment for 1.13. |
a7cff61
to
3e7c4aa
Compare
// @see Sylius\Bundle\ResourceBundle\ExpressionLanguage\NotNullExpressionFunctionProvider | ||
$taxon = $this->taxonRepository->findOneBySlug( | ||
$this->resquest->attributes->get('slug'), | ||
$localeCode, | ||
); | ||
if ($taxon === null) { | ||
throw new NotFoundHttpException('Requested page is invalid'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to move that to a helper or somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@diimpp Any ideas or thoughts on this one? I guess it would make sense to make a class or a trait that could emulate what we had in the expression parser.
src/Sylius/Bundle/ShopBundle/Resources/views/Account/Order/Grid/Action/pay.html.twig
Outdated
Show resolved
Hide resolved
@diimpp Can someone with some behat expertise have a look, I don't understand what the problem is. The button should be there. |
src/Sylius/Bundle/ShopBundle/Resources/views/Account/Order/Grid/Action/pay.html.twig
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ShopBundle/Resources/config/services/grid.xml
Outdated
Show resolved
Hide resolved
I am using the same actions as before now (they are the same, but have different templates to make overriding them easier. |
16581d0
to
f4f1f77
Compare
25e9f35
to
c4a2292
Compare
Please keep the yaml configuration, the configuration are not merged. I will make a new provider for a bc layer to migrate grid per grid for end users. I'll make it probably next week. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my other comment
I don't yet understand why but I can revert the grid configuration. |
https://github.com/Sylius/SyliusGridBundle/blob/1.13/src/Component/Provider/ChainProvider.php there are two providers to retrieve the grid configuration. When a developer has customized the sylius grid with yaml it will not work cause the service grid provider configuration will be retrieved first. I have an idea for a new provider to make a bc layer |
I think we can base this one to 1.13. But let's wait for other core team opinions. |
@loic425 I think we're keeping yaml at 1.13 and php configs are for 2.0. Same was done for SF workflows. |
So what's the status on this one? Can loics PR be merged and mine too. Because there are still the admin grids that need to be migrated for 2.0 |
Poking this and #15491 again. It would make finding the grid configuration easier as well. Just search for OrderGrid and you don't have to go through the yaml files or the debugger to find it. |
Paritally copying over some of the grids from Sylius#14449
Co-authored-by: Dmitri Perunov <diimpp@gmail.com>
f7297ff
to
cb9a90c
Compare
Paritally copying over some of the grids from #14449
To be able to get this merged quicker this MR contains the shop grid bundle changes only for the shop.