Uzume added a comment.
In T192462#5461691 <https://phabricator.wikimedia.org/T192462#5461691>, @Ladsgroup wrote: > So quick question from people who need this (ping @Uzume and @eranroz): Should mw.wikibase.entityExists('Q123') return true in case Q123 is redirect all the time or when it's redirecting to an existing entity? That is a very good question. Since "Exists" is in "entityExists", I suppose it ought to test for existence but that makes it only marginally useful and why I asked for a consolidated method of handling the resolution of redirects vs. attempting to making the rest of the API handle redirects (which is likely error prone and hides what is really going on). TASK DETAIL https://phabricator.wikimedia.org/T192462 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ladsgroup, Uzume Cc: eranroz, Ladsgroup, alaa_wmde, gerritbot, Aklapper, Uzume, Ahecht, Lydia_Pintscher, hoo, Hazizibinmahdi, Iflorez, darthmon_wmde, Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs