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

Fix UTF-8 data in test_reports table #28

Open
preaction opened this issue Jun 19, 2018 · 1 comment
Open

Fix UTF-8 data in test_reports table #28

preaction opened this issue Jun 19, 2018 · 1 comment

Comments

@preaction
Copy link
Member

For the longest time, CPAN Testers has not supported UTF-8 data. This has resulted in some interesting problems, not the least of which is that Andreas König and Slaven Rezić both have to encode their name with HTML escapes (ö and ć respectively).

The correct solution is for the test report data to be stored in a utf8mb4 column in MySQL. We need to modify the test_reports table to be fully utf8mb4 throughout.

To get there from here will take some doing, though: With 12,000,000 records, this will take some time. We need to minimize downtime, so we may need to migrate in stages: The first stage to migrate most of the reports to a new table, then turn off incoming reports, then migrate the the rest of the reports to the new table, then rename the tables.

@preaction
Copy link
Member Author

Fixing this will allow us to start adding better indexes to this table. Right now, I'm generating a column for the tester e-mail address, but when I add an index MySQL complains that the data is not valid for the character set, no matter which character set I use...

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

No branches or pull requests

1 participant