-
Notifications
You must be signed in to change notification settings - Fork 29
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-30513: eZXMLText Migration: ignore nested embeds in the link #98
Conversation
176b215
to
beeceff
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.
Do you know in what scenario the user might got such nested embeds inside links? Are the embeds rendered somehow in legacy? if it is, maybe the embed should be moved before or after the link?
Sorry, not sure what is the best scenario to reproduce this kind of data in legacy. Most likely it was populated by some legacy import scripts. |
beeceff
to
62ba90d
Compare
@mnocon can you please check why tests are failing here?
|
@SerheyDolgushev see #109 |
@SerheyDolgushev #109 is merged, rebasing should help here |
62ba90d
to
0881992
Compare
@mnocon thanks! |
@vidarl isn't embed-inline a text type inline tag which can be within anything (link, paragraph, bold, custom-inline, ..) ? @SerheyDolgushev do we have something to convert to instead of removing them? |
@andrerom don't think there is any reason to convert this. As the only source for such kind content is custom imports/etc. And most likely such content wasn't displayed properly in the legacy. So most likely it is something which was imported in a wrong way, and nobody noticed it in the legacy. That's why I vote just for skipping it. |
yes, well. I am not sure if legacy can have it within anything. That is why I asked how legacy rendered this. We might have to move (not delete) it as we do with links inside links: |
@SerheyDolgushev Could you:
|
I tested legacy, and legacy indeed renders both the link and the inline-embed. |
Sorry, so what would be the next steps here? Should we move (but not delete, as @vidarl suggested) those elements? |
Yes, move the embed outside of the link tag so that it is not lost |
Closed this one in favor of #110 |
1.7
We found that in some cases there might be nested
embed-inline
elements insidelink
in eZ XML Text:And it will be converted to invalid RichText:
Such kind embeds need to be ignored.
TODO:
$ composer test
)$ composer fix-cs
).