Description
Numerous logs show empty language fields being stored:
https://logstash.wikimedia.org/goto/de6bd8718f0796c1684e3fa360a9628a
Upon investigation, there are a number of object displaying this sort of content:
- Z21176: in content
- Z23176: in content
Z22794- Z23178: in content
Z23181Z22989Z23173Z22790Z22789- Z23177: in content
Z22793Z22790Z23172Z22789(e.g. oldid=170943)- Z23292: in content
Z22788Z23179- Z23174: in content
- Z23175: in content
Z22976
We should:
- Considering that this is an error that has increased in the latest week, diagnose if the increase of this content is due to some change.
- everything working as before; no empty Z11K1s being submitted in multilingual data
- Make sure that in the wikilambda layer all methods that receive a language zid (e.g. fetchLanguageCodeFromZid) exit early when encountering empty strings.
- checked: this is working well after James' fix https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/1171572
- Fix the underlying issue and the content missing language zids
Upon further investigation 28-07-2025
- All empty Z11K1s are inside implementation compositions (all but one for Italian functions)
- test cases for "Italian definite article/Z23171": they are all failing and disconnected tests because they are taking monolingual inputs instead of strings
- No empty Z11K1s found as part of the multilingual data that's transformed and validated
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist


