Support of auto-fix of internal links when sections are moved
Closed, WontfixPublic

Description

Strategies:

  • bot
  • request

Find a solution and implement it

ruphy created this task.Sep 8 2016, 1:21 PM
ruphy moved this task from Backlog to CourseEditor on the WikiToLearn (1.0) board.
ruphy triaged this task as Normal priority.
ruphy raised the priority of this task from Normal to High.
ruphy lowered the priority of this task from High to Normal.
ruphy raised the priority of this task from Normal to High.
ruphy lowered the priority of this task from High to Normal.

@davidev Did you run a pywikibot in the meanwhile to fix the existing internal links?

atundo claimed this task.Sep 12 2016, 3:51 PM

I have to fix yet the internal links sorry. Give me a couple of days.

I have to fix yet the internal links sorry. Give me a couple of days.

Ok, please notify in this task when you ran it.

This task could be fixed splitting "rename" user operation into two micro-operation: the first one rename the page etc (could be also split again), the second one looking for pages that pointed to the original page title, rewrite internal links and delete the redirect (they could be micro-ops too).

atundo closed this task as Wontfix.Sep 16 2016, 4:52 PM
atundo added subscribers: crisbal, tomaluca.

I tried and discussed w/ @davidev @crisbal and @tomaluca lots of different solutions. After a big effort, unfortunately I have to say that get backlinks isn't "deterministic". I mean, their update seems asynchronous, so I cannot rely on it.

Despite I implemented the solution described in the previous comment I must abort it in favor of:

  • Activate move w/ redirects again
  • Display to the user an error if the page name is already used (the redirect itself)
  • Create a bot that fix asynchronously the links and delete the redirects (@davidev)

I'm proceeding creating a bot that gets the redirect pages in the Course namespace, fixes the links in the backlinked pages and delete the redirect page