Jdlrobson added a comment.
The frontend stable policy currently doesn't cover mw.config values. We already have cases where config variables are not always available e.g. on mobile wgCategories is notably absent, so I think code should be providing fallbacks or error handling when those don't exist. e.g. `mw.config.get('wgCategories', [] ) ` or `if (mw.config.get('wgCategories') === null ) return;` I think this would be a good thing to clarify in the policy - so would encourage you to propose text via the talk page (https://www.mediawiki.org/wiki/Talk:Stable_interface_policy/Frontend) that makes sense for your team relating to the lack of stability of config variables to make this clearer! TASK DETAIL https://phabricator.wikimedia.org/T348079 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Jdlrobson Cc: WMDE-Fisch, Jdforrester-WMF, WMDE-leszek, ItamarWMDE, thiemowmde, Aklapper, Jdlrobson, Danny_Benjafield_WMDE, Isabelladantes1983, Themindcoder, Adamm71, S8321414, Jersione, Hellket777, LisafBia6531, Astuthiodit_1, 786, Biggs657, karapayneWMDE, Invadibot, maantietaja, Juan90264, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, darthmon_wmde, 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, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org