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
eZ Platform v3 compatibility #12
Conversation
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.
Major version release it's a good opportunity to clean up the code base. Quick self-check list:
- Consider to mark classes as
final
if it's possible (usually controllers, compiler passes etc.) - Apply official code style (import them from
ezplatform-code-style
) - Drop deprecated classes/methods/properties
composer.json
Outdated
"guzzlehttp/guzzle": "^6.3.0", | ||
"ezsystems/ezpublish-kernel": "^6.0.0|^7.0" | ||
"ezsystems/ezplatform-kernel": "^1.0", | ||
"ezsystems/ezplatform-richtext": "^2.0" |
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.
symfony/**
dependencies are missing
@adamwojs commits from 239ba3d contain changes you have requested. I did it according to my best knowledge, but some things might still be missing. @lserwatka could we have a QA certification on this one, please? |
@bdunogier / @damianz5 any feedback on this one, please? |
lib/Translator.php
Outdated
use eZ\Publish\API\Repository\Values\Content\Content; | ||
use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; | ||
use eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverterInterface; | ||
|
||
/** | ||
* Class Translator. | ||
*/ | ||
class Translator | ||
{ | ||
use RepositoryAware; |
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.
@kmadejski The trait class RepositoryAware.php
is removed. The use
will cause exception
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.
That's right, just got it from QA as well. I'll fix it soon :)
Hi @kmadejski ! Thanks for fixing the RepositoryAware issue. 😎 It's now possible to use this new feature on 3.0, below please find the non-blocking things I noticed. On the UI the checkbox seems to need some more love, unless I'm missing some assets but I tried reloading translations, yarn etc.: In the browser console an error occurs when creating a new translation, it looks a bit different on Chrome and Firefox. FF: Chrome: I'll let you know if I find anything else. |
What about support for Landing Pages? 🙂 e.g. some text in a Code block. The checkbox is visible when adding a translation from Page Builder level but the magic doesn't happen. |
@micszo unfortunately, it does not support Landing Pages but it could be a nice improvement 🙂 |
Ok, similarly the option is present when adding translations in Form Builder. 🙂 But here it could be only applicable to placeholder values I suppose. |
@micszo I have identifier the root source of the problem you spot during recent tests. There is a problem with template overriding. This bundle tries to override one of the templates, precisely I have updated bundle's documentation to cover this trick in: 1b7e543 |
I'm not surprised by the behaviour you describe, @kmadejski. I'm afraid it is "correct", as in "not a side effect", but it doesn't feel right from a user perspective. I don't know what we could do about it, but it would be great if we could find a better way than fiddling with bundles order. |
@kmadejski changing bundles order resolves the problem on v3.0.6. 👍 Update: on v3.1.1 changing order works. |
@micszo I was testing this on v3.1.0 and it seems to be alright. What is the issue you're facing? |
Yesterday on v3.1.0 the order change had no effect for me but now on v3.1.1 it works fine. Not sure what was the issue. |
@micszo Just guessing that it could be cache 😅 Thanks for testing! |
This PR brings compatibility for eZ Platform v3. Due to introduced changes it should be released under a different major tag as it's no longer compatible with eZ Platform v2.x and lower.