-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
Allow "friendsofsymfony/rest-bundle:^3.0" #1767
Conversation
The commit dadd6ab seems unrelated given the PR title and description. |
I got critical error in tests:
https://travis-ci.org/github/sonata-project/SonataMediaBundle/jobs/708806345#L815 Can we change |
I check
but should be:
Mybe we should add
This will generate router name: {name-prefix}{router name} = |
I agree that if we must keep the previous names, we should take that responsibility. |
@phansys Can you fix it for UserBundle? This can be helpful: sonata-project/dev-kit#778 (comment) |
Sure. I'll try to provide this fix tomorrow 👍 |
Probably last thing what we should fix is format. I cant generate xml but evan for non fixed bundles. Mybe it is my config but |
I can confirm this happens, since when I bumped this requirements in one of my private projects some time ago I had to add the suffix explicitly. I'll try to provide a fix for SonataUserBundle in order to check. |
After change 127.0.0.1:8000/api/notification/messages.xml <result>
<page>1</page>
<per_page>10</per_page>
<last_page>0</last_page>
<total>0</total>
<entries/>
</result> Anyway I can get result if no object is existing. Probalbly it is some problem with WDYT? @phansys |
I'm not using XML, so I must check first in order to share any concern about this. |
Is this one ready to review? |
@jordisala1991 I working on test now. I will write when finish it. |
19241e8
to
594429e
Compare
@jordisala1991 @greg0ire It is RTM, but i can find why |
d81b441
to
eb9d51e
Compare
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.
This could be great to make a merge 3.x into master after this. We're starting to have a lot of conflict to merge ^^
Plus, this one is a hard merge because there are entity changes. I can deal with it after the merge |
Finally it is RTM. If it is hard to merge 3,x to master we can split it to 2 PRs. Can you merge 3 PRs? and I will merge PRs with my work then. @jordisala1991 |
<route id="get_gallery_medias" path="/galleries/{id}/medias.{_format}" methods="GET" controller="Sonata\MediaBundle\Controller\Api\GalleryController::getGalleryMediasAction" format="json"> | ||
<requirement key="_format">json|xml|html</requirement> | ||
</route> | ||
<route id="get_gallery_galleryhasmedias" path="/galleries/{id}/galleryhasmedias.{_format}" methods="GET" controller="Sonata\MediaBundle\Controller\Api\GalleryController::getGalleryGalleryhasmediasAction" format="json"> |
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.
I'd like to have this list sorted by id, but it's not really a blocker.
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.
I check it. Better keep it in this way becouse order in config is equal to order in nelmio doc. Its look much better when we keep this order.
@jordisala1991 @wbloszyk Have a good merge ! 😁 |
@VincentLanglet @jordisala1991 Many conflits but easy to resolve: #1775 |
Subject
Allow "friendsofsymfony/rest-bundle:^3.0".
I am targeting this branch, because these changes respect BC.
Changelog