Skip to content
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-29846: ezxmltext -> ricktext conversion: Conversion tool skips some ezxmltext rows #88

Closed
wants to merge 4 commits into from

Conversation

vidarl
Copy link
Member

@vidarl vidarl commented Nov 29, 2018

This one fixes EZP-29846, also reported here : https://github.com/ezsystems/ezplatform-xmltext-fieldtype/issues/60

So the problem was that the different rows was distributed to child processes using select * from ezcontentobject_attribute where data_type_string='ezxmltext' limit $limit, $offset, which ended badly as data_type_string values where changed from 'ezxmltext' to 'ezrichtext' during conversion.
This PR has the quick fix for it. A better quicker solution would be to get ridd of the slower $offset approach all together

@vidarl vidarl requested review from kmadejski and andrerom November 29, 2018 10:13
@@ -92,18 +92,26 @@ public function getContentTypeFieldTypeUpdateQuery($fromFieldTypeIdentifier, $to
return $updateQuery;
}

public function getRowCountOfContentObjectAttributes($datatypeString, $contentId)
/**
* @param string|array $datatypes One datatype may be provided as string. Multiple datatypes areaccepted as array
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nitpick: areaccepted -> are accepted.

Copy link
Contributor

@andrerom andrerom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Nitpick would be that it's called field type and not dataType in platform, but :)

@andrerom
Copy link
Contributor

Should this target 1.7?

@andrerom andrerom closed this in ee587fe Dec 3, 2018
@vidarl vidarl deleted the fix_ezp29846 branch December 6, 2018 13:31
@vidarl vidarl restored the fix_ezp29846 branch December 6, 2018 13:31
@andrerom andrerom deleted the fix_ezp29846 branch October 7, 2019 12:48
@vidarl
Copy link
Member Author

vidarl commented Nov 14, 2019

FYI : fixed in ee587fe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants