-
Notifications
You must be signed in to change notification settings - Fork 6
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
IBX-4906: Added MigrateRichTextNamespacesCommand #77
IBX-4906: Added MigrateRichTextNamespacesCommand #77
Conversation
src/lib/Persistence/Legacy/MigrateRichTextNamespaces/Gateway/DoctrineDatabase.php
Outdated
Show resolved
Hide resolved
Community thread about the missing migration, with a request for doc. Good feedback, it looks like. |
…rs in phpstan.neon
42522f5
to
ddf506a
Compare
a7dd129
to
c689061
Compare
Co-authored-by: Konrad Oboza <konrad.oboza@ez.no>
|
||
# RichText namespaces map to migrate | ||
ibexa.field_type.rich_text.namespaces_migration_map: | ||
'xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml"': 'xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml"' |
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.
Should
ezxhtml
be still in use?
Yes if technically possible. I'm not sure how this would affect OE
Okay, so it indeed is a backend issue not an OE one. The same way we updated xmlns
URI we should update XML namespace names:
xmlns:ez
xmlns:ezxhtml
xmlns:ezcustom
to be eg. ibx
and provide upgrade script like this one (ideally just extending it). It would be good to include it right now to reduce possible future complexity, but it's not as simple as just upgrading field values in the database. The entire ezpublish.rng
needs to be refactored, including also other legacy naming occurrences (not to mention file name itself, which is a BC issue).
FYI @webhdx @adamwojs maybe we need to schedule additional follow-up work for this.
src/lib/Persistence/Legacy/MigrateRichTextNamespaces/Gateway/DoctrineDatabase.php
Outdated
Show resolved
Hide resolved
Co-authored-by: Andrew Longosz <alongosz@users.noreply.github.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Regression tests passed: |
v4.4
+This PR provides command to migrate RichText namespaces based on implemented Gateways.
Namespaces:
TODO:
$ composer fix-cs
).