Description
The ZObjectStore method fetchZidsOfType uses the wikilambda_zobject_labels table to return an array of Zids of a given type.
This table only contains those objects that have at least one label or alias. However, labels and aliases are not mandatory, so this method will not return all the existing objects but only the unlabelled ones.
updateSeondaryTables Hook and other maintenance scripts use this method, assuming that it will capture ALL the persisted objects of a certain type. This is not the case.
Expected behavior (Acceptance criteria):
- fetchZidsOfType method should return all zids of a given type, no matter their state.
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