User:Aude/Bugs

Do not load full entities when invoking LinkBegin hook
https://bugzilla.wikimedia.org/show_bug.cgi?id=70767


 * Factor out hook handling code into separate class, with tests
 * Use batching label lookup in SpecialWikibaseQueryPage (used for SpecialEntitiesWithoutPage, SpecialItemsWithoutSitelinks) where we know the EntityIds before doing the formatting.
 * Use EntityInfoTermLookup / label lookup in ClaimsView and SnakHtmlGenerator for formatting property ids, instead of Linker / onLinkBegin.
 * onLinkBegin is also used in EntityContentDiffView / EditEntityAction code for presenting diffs.
 * For remaining use cases (occurring in core), we probably want an Elastic Search-based term lookup, if we can't batch lookup, else second choice is EntityRetrievingTermLookup.