hoo added a comment.
We could change `resolveTermIds( array $termIds ): array` (from `TermIdsResolver`) to `resolveTermIds( array $termIds, array $types = null, array $languages = null ): array` where we restrict the result set to only contain thing of `$types` and/ or only things in language(s) `$languages`. I would change `resolveGroupedTermIds` accordingly. If we don't want that, we could create new lookup methods for this like `resolveAndFilterTermIds` or set this option via a cloning setter (like `TermIdsResolver::withLanguageFilter()`) on `TermIdsResolver` implementations (which would then apply to all subsequent calls). TASK DETAIL https://phabricator.wikimedia.org/T225003 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: hoo Cc: alaa_wmde, Aklapper, Lucas_Werkmeister_WMDE, Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, darthmon_wmde, joker88john, CucyNoiD, Nandana, NebulousIris, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
