Page MenuHomePhabricator

Changing the related article on the noJS form does not unlink the story from the initial wiki page
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
EUdoh-WMF
Sep 27 2022, 7:27 PM
Referenced Files
F35713475: image.png
Nov 7 2022, 10:22 AM
F35713472: image.png
Nov 7 2022, 10:22 AM
F35662849: image.png
Oct 29 2022, 6:33 PM
F35662785: image.png
Oct 29 2022, 6:33 PM
F35662838: image.png
Oct 29 2022, 6:33 PM
F35629293: image.png
Oct 26 2022, 10:43 AM
F35629297: image.png
Oct 26 2022, 10:43 AM
F35536713: image.png
Sep 27 2022, 7:27 PM

Description

Steps to replicate the issue (include links if applicable):

  • Create a wikistory for an article
  • Go to the noJS form and change the Related Article to another Wiki page
  • Go to the Special:WhatLinksHere page of the first Wiki article

What happens?:

  • You can still see the Wikistory linked to the first wiki page

What should have happened instead?:

  • You should not see the Wikistory link since it is no longer associated with that page.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

image.png (1×2 px, 351 KB)

E.g. I moved this story from [[ https://en.m.wikipedia.beta.wmflabs.org/wiki/Rapa_Nui_National_Park | Rapa Nui National Park ]]to Batman. However, I can still see the story show up under What Links Here for Rapa Nui.

Event Timeline

SBisson triaged this task as Medium priority.Oct 25 2022, 2:38 PM
SBisson moved this task from Backlog to Ready for Dev on the Inuka-Team (Kanban) board.

This is the first time I access this page, so i can see it correctly under Batman (WhatLinksHere page)

BatmanRapa Nui National Park
image.png (842×1 px, 98 KB)
image.png (677×1 px, 54 KB)

does it relevant to the job queue?

Also note that if a page's links change due to a change in the template, the backlinks for that page are not updated immediately, but via the job queue.

We can test the theory.

I moved the story A New Day from Batman to Cats. At the time of this comment, the story has not moved from the Batman's What Links Here page to Cat's What Links Here page yet.

image.png (1×1 px, 409 KB)
image.png (1×1 px, 518 KB)
image.png (1×1 px, 422 KB)

Notes:

After page move:

  1. database pagelinks exist for both articles; (62 is the story)

image.png (331×384 px, 16 KB)

  1. running maintenance script refreshLinks.php rebuildall.php doesn't help

image.png (367×562 px, 29 KB)

  1. Interest found, if you move story to another article, then move back to original article, the pagelinks from 2nd article is removed.

Change 855612 had a related patch set uploaded (by Huei Tan; author: Huei Tan):

[mediawiki/extensions/Wikistories@master] Remove link registration from the article title of each image frame

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

Change 855612 merged by jenkins-bot:

[mediawiki/extensions/Wikistories@master] Remove link registration from the article title of each image frame

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

Tested this again: the story is unlinked immediately from the original wiki page and shows up instantly on What Links Here on the new page.

Test wiki created on Patch demo by HTan (WMF) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/8d10c52552/w

Test wiki on Patch demo by HTan (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/8d10c52552/w/