Page MenuHomePhabricator

[DOT] Perform necessary redirect after editing terms with wikidata-bridge
Closed, ResolvedPublic

Description

The edit request made by the wikidata-bridge may create a temporary account, in which case the API will return (once T357024 is implemented) a URL that we need to redirect to.

Event Timeline

I think this actually has an additional complexity beyond the other subtasks of T357020 – ideally, I assume we’d like to return to the client wiki where the user was, not the repo wiki where the edit was actually made (and the account created)…

But given that the bridge is currently not used, it’s probably good enough if we just do a redirect and end up back on the Wikidata main page.

I think this actually has an additional complexity beyond the other subtasks of T357020 – ideally, I assume we’d like to return to the client wiki where the user was, not the repo wiki where the edit was actually made (and the account created)…

If we want this to happen, we’ll have to do it ourselves (add some code in repo that redirects to the client wiki) – having CentralAuth return directly to the client wiki would require nontrivial changes according to @Tgr (Slack).

But given that the bridge is currently not used, it’s probably good enough if we just do a redirect and end up back on the Wikidata main page.

Change 1003591 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/Wikibase@master] Update wikidata-bridge to handle redirects after temp user creation

https://gerrit.wikimedia.org/r/1003591

Change 1003591 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Update wikidata-bridge to handle redirects after temp user creation

https://gerrit.wikimedia.org/r/1003591

Not much, I think; but T351968#9602082 might be relevant depending on how soon you’re planning to fix T354750.

Not much, I think; but T351968#9602082 might be relevant depending on how soon you’re planning to fix T354750.

My understanding is that Bridge, including T354750, will not be worked on any time soon, sadly. But I'll make T343786 as subtask of T354750 with an explanatory comment anyway, in case that changes.

Thanks for confirming!