thewca / worldcubeassociation.org

All of the code that runs on worldcubeassociation.org
https://www.worldcubeassociation.org/
GNU General Public License v3.0
337 stars 178 forks source link

Competition ID transliterates differently depending on local #8629

Closed DanielEgdal closed 11 months ago

DanielEgdal commented 11 months ago

When you update an unannounced ompetition which contains a non latin character (e.g., Å,Ø,Æ,Ö) in the name, the WCA website will change the ID based on which local the user has (with changes done in the organiser view) For example, "Dåstrup" will be converted to "Dastrup" when the local is English, and "Daastrup" when the local is Danish. This gives inconsistent behaviour on the WCA website. WCAT has already experienced one issue of this, but did not realise how this had occurred.

I assume the cause is from ActiveSupport::Inflector.transliterate in the models/competition file: https://github.com/thewca/worldcubeassociation.org/blob/master/WcaOnRails/app/models/competition.rb#L661

DanielEgdal commented 11 months ago

Screencast from 12-19-2023 06:20:11 PM.webm