-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Remove Block context manager #1524
Remove Block context manager #1524
Conversation
cfac53b
to
8327117
Compare
Could you please rebase your PR and fix merge conflicts? |
Hey @VincentLanglet do you need that I test it? But what exactly do you need that I test :D |
In #1495 you reported that you got the error
I was wondering if my PR fixed the issue (or if you get another error which would explain why this class is useful) |
ohh Ok I got it, I'll check ;) |
Hey @VincentLanglet when I tried to install your branch I got this error
|
Do you have the config
? I removed it from the doc, because I removed the service, i think you have to use the block manager from Block bundle so |
Hey @VincentLanglet I removed this line and my admin page is working as expect I don't know why were we using those |
8327117
to
d792fb8
Compare
Hey @VincentLanglet should we add this note about context_manager: sonata.page.block.context_manager? In upgrade notes? Or it's not necessary? |
Indeed. We should even deprecate the context_manager in the 3.x branch (and maybe we dont even need it on 3.x). So a PR on 3.x is needed. Do you want to do it or I do it ? |
Hey @VincentLanglet well for the free time that I'm getting I'm investing in this template issue :/ Then i can't do that for now :/ |
Sorry It is related with other thing! |
Hey @VincentLanglet could you wait the Serializer PR pass? because after that I can test a page with blocks, I guess this functionality is used when the page has blocks! and for now it's not possible to test because it's broken :/ Because in 3.x if I remove this option ( |
It could be interesting to know more about this error ; which class is complaining about the manager/page_id option ? Looking at https://github.com/sonata-project/SonataPageBundle/search?p=1&q=page_id, I wonder if it's not cache related ; and since we remove this feature... |
I'll try to clean up my cache, I'll post here the results :) |
I meant it's maybe related to class inside the src/Cache folder. Anyway, I'll wait for the other PR to be merged first |
ohhh I got it! yeah But I can't test my contact page yet, because of this issue #1496 |
Could you please rebase your PR and fix merge conflicts? |
d792fb8
to
de73cc0
Compare
Pr is rebased if you want to try again @eerison |
de73cc0
to
f525a88
Compare
It works @VincentLanglet 🥳 |
WDYT @jordisala1991 Should we go with this strategy ? If so, I am not sure it really useful to introduce some deprecation in 3.x. if the option (context_manager: sonata.page.block.context_manager) cannot be removed without breaking the app. |
I its broken, IMO lets fix on 4.x by removing it, and lets see if someone complains. It seems to work and the branch is not released, so its not a big risk, we can recover that file later if needed. And I dont think we should do a deprecation here. |
I guess we could go with this, and make the 4.x branch usable, and when we going to do a final test we can try to cover this functionality, I can add this in the 4.0 tickets list! |
exactly |
Ready to review then @jordisala1991 |
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.
OK for the code, IMO we could add some entry in the UPGRADE guide. to mention this was removed.
Added |
Subject
I am targeting this branch, because {reason}.
Closes #{put_issue_number_here}.
Changelog