-
Notifications
You must be signed in to change notification settings - Fork 17
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
EZP-31626: Fixed rendering of embed locations #146
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.
On second thought, the bug is also valid for 2.5 LTS. Please rebase onto 1.1
.
dbdfb91
to
1207ede
Compare
Done. |
Hi @SerheyDolgushev, I ran into this error while testing your change. Steps:
Actual result: Error occurs in UI "Cannot read property 'Result' of undefined", on Network tab in browser console there is error 500 Please advise. |
I saw that too, but we just ignored this error. Please correct me, if I'm wrong, but the UI in v2/v3 is not designed to allow us to use So updated steps to reproduce are:
|
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 saw that too, but we just ignored this error.
@SerheyDolgushev I'm sorry but this is not acceptable. You cannot submit solution which solves one issue, but introduces or exposes another one.
If you want to support ezlocation
it needs to be complete or at least not crash OE (sometimes we do just that to unblock separate tasks).
If you feel it's a separate scope - I'm always for smaller PRs, but please submit another PR or just add separate commit here so QA can test this.
It cannot be approved if there are errors.
Lets say theoretical eZ Publish site was upgraded to eZ Platform. And Without this PR full view for those pages will crash. With this PR full view for those pages will work just fine. And I agree that a separate change might be required to provide ability to edit embed locations in the UI. Commits to implement it are more than welcome (in this PR or in the separate PR). But right now this PR is about fixing the rendering of currently existing embed locations. And personally I do not see any reasons why it can not be merged. It does not bring any new issues. It partly solves already existing issue. I guess partial fix is worst than complete fix, but better than no fix at all. |
OE cannot crash. It crashes not just when inserting such markup, but when editing existing imported item. |
Sorry, just to double-check I clearly understand your point. Right now there are two issues related to embed locations:
This PR fixes the first issue, but does not fix the second one. And it can not be approved, because it does not fixes OE crash. |
You've given steps to reproduce which involve ignoring existing error. This does not meet quality requirements. [1] It's not really a bug in eZ Platform stack, it's just not supported. But given that we've promised migration from eZ Publish to eZ Platform will work, we're treating some of those as bugs (common sense applied) and as a separate case (migration vs OE) |
I created a PR to fix the error (it will not provide support for ezlocation but at least it will not fail with an error) ezsystems/ezplatform-admin-ui#1374 |
@dew326 Thanks a lot for helping with this PR! |
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.
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.
QA Approved on eZ Platform EE 2.5 with diff.
Tested together with ezsystems/ezplatform-admin-ui#1374.
All related PRs merged up. |
We faced this issue during upgrade to eZ Platform v3 from eZ Publish. And seems like the only
ezcontent://
links are used in eZ Platform v3 UI, which makes hard to reproduce it on the clean eZ Platform v3.0.3 installation.Steps to reproduce
Expected result
Embed location will be rendered
Actual result
The following exception is thrown:
TODO:
$ composer fix-cs
).