Ladsgroup added a comment.

In https://phabricator.wikimedia.org/T78094#835871, @Ricordisamoa wrote:

> In https://phabricator.wikimedia.org/T78094#835777, @jayvdb wrote:
>
> > https://gerrit.wikimedia.org/r/#/c/157626/ added basic support & tests for 
> > item redirects.  Is the problem that ItemPage.get doesnt have 
> > 'get_redirect' ?
>
>
> AFAICT ItemPage.getRedirectTarget() has been working since that change. 
> @Ladsgroup: why is it 'not supported' exactly?


it doesn't support redirects in Wikibase the way wikibase treats them, it 
supports them the way it supports page redirects. e.g. it doesn't raise error 
in case item.get() is used without get_redirect=True. it doesn't return 
ItemPage if we ask for target, and it return Page object instead. and more 
importantly it doesn't support a method like setRedirectTarget (I think we 
should write something like this for Page class too)


TASK DETAIL
  https://phabricator.wikimedia.org/T78094

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
<username>.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup
Cc: Aklapper, Ladsgroup, jayvdb, Ricordisamoa, Revi, pywikipedia-bugs



_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to