thiemowmde added a comment.

  Quick response from a dev who worked with this code back in 2014 and is at 
least partially responsible for the mess. 😇️
  
  The formatter options are (mis)used for two, maybe three different purposes.
  
  1. Only very few options are meant to accept values the user can freely 
choose from.
  2. Many options are never presented to the user. They are part of a 
round-trip where the decision is made in the backend, send as part of the 
HTML/JS to the client, where they become part of formatter calls in the UI. I 
think nobody bothered adding user-friendly validation here because it would be 
unreachable in all real-world scenarios.
  3. Some options are not meant to be accessible from the outside at all. They 
became an option either because it was unclear that this would make it public, 
or because we didn't know better, ignored YAGNI, and made it public anyway. 
Please feel free to identify these, remove them from the options system and 
turn them into dedicated constructor parameters.

TASK DETAIL
  https://phabricator.wikimedia.org/T323778

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: ArthurTaylor, thiemowmde
Cc: thiemowmde, Arian_Bozorg, ArthurTaylor, ItamarWMDE, Michael, 
Lucas_Werkmeister_WMDE, Aklapper, Danny_Benjafield_WMDE, Isabelladantes1983, 
Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, Astuthiodit_1, 786, 
Biggs657, karapayneWMDE, Invadibot, maantietaja, Juan90264, Alter-paule, 
Beast1978, Un1tY, Akuckartz, Hook696, Kent7301, joker88john, CucyNoiD, Nandana, 
Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, 
GoranSMilovanovic, QZanden, KimKelting, LawExplorer, Lewizho99, Maathavan, 
_jensen, rosalieper, Neuronton, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to