-
-
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
[CoreBundle] Move serialization to AdminApiBundle and move ProductVar… #8115
Conversation
…iant relations serialization from ProductBundle to AdminApiBundle
I don't have a better idea how to tackle it. Can you move relation from the rest of routes? Currently, they aren't useful anyway. |
We will need a note in UPGRADE file about it. And also, I'm pretty sure it is BC break, but we need it. |
Ok, i move a lot of relations, but on some, i have questions
They are not in corebundle, do you want i create them ? |
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.
A few small tweaks + note in UPGRADE.md and it is ready to merge :)
@@ -24,4 +32,4 @@ Sylius\Component\Core\Model\OrderItem: | |||
parameters: | |||
code: expr(object.getVariant().getCode()) | |||
productCode: expr(object.getVariant().getProduct().getCode()) | |||
version: 1 | |||
version: 1 |
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.
Missing blank line at the end of file
@@ -6,6 +6,14 @@ Sylius\Component\Core\Model\OrderItem: | |||
expose: true | |||
groups: [Default, Detailed, DetailedCart] | |||
relations: | |||
- rel: order | |||
exclusion: | |||
groups: [Default, Detailed, DetailedCart] |
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.
Something went wrong with the indentation
code: expr(object.getProduct().getCode()) | ||
version: 1 | ||
exclusion: | ||
groups: [Detailed] |
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.
Missing blank line at the end of file
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.
added
UPGRADE.md
Outdated
@@ -156,20 +156,79 @@ | |||
* from `SyliusCoreBundle:Email:userRegistration.html.twig` to `SyliusShopBundle:Email:userRegistration.html.twig` | |||
* from `SyliusCoreBundle:Email:passwordReset.html.twig` to `SyliusShopBundle:Email:passwordReset.html.twig` | |||
* from `SyliusCoreBundle:Email:verification.html.twig` to `SyliusShopBundle:Email:verification.html.twig` | |||
|
|||
|
|||
* The following serialization configuration was moved from CoreBundle/Resources/config/app/config.yml to AdminApiBundle/Resources/config/app/config.yml |
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.
It should b part of migration from FROM 1.0.0-beta.2 to 1.0.0
(new section)
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.
my bad, read it too quickly
Thank you Nicolas & Łukasz! |
…iant relations serialization from ProductBundle to AdminApiBundle
Move serialization from CoreBundle to AdminApiBundle
Move relations of ProductVariant serialization from ProductBundle to AdminApiBundle
I'm not sure to do it the right way @lchrusciel.
If i'm correct, every relations with admin_api routes have to be moved the same way no ?