Page MenuHomePhabricator

Handle article rename
Closed, ResolvedPublic

Description

Background

Articles are subject to renaming at any given point in time; and in situations where there's a wikistory attached to it we want to ensure that the links to the article still work as expected.

For this task, we require to check these scenarios/user journeys to confirm that the stories are not impacted negatively and if so, fix them.

Test Scenarios

Consider the following example throughout the test scenarios below: there's an article titled "Dog" that has 3 wikistories attached to it, then that article is renamed/moved to an article titled "Canine"

Story builder:

  1. What would happen to the Search experience to Commons as it currently takes the article title as a search query?
    • When opening the builder from new article "Canine", the image search should start with "Canine" as pre-filled search query
  1. What would happen if a user tries to add text from an article in the builder; will it redirect to the updated article or older link?
    • When selecting the CTA to add text to a story being created from new article "Canine", it should show the user the text from "Canine" article (in this case the article text is not affected by renaming article)

Story Page:

  1. Would the link to the renamed article be broken or would it redirect to the updated link? Example link
    • The link in the story page should redirect to the updated article link

Article page:

  1. What would happen to stories attached to original article after renaming?
    • The 3 stories attached to original article "Dog" should display in the new article "Canine" the same way. Note the scope for this ticket is renaming an article only once. Renaming an article multiple times is out of scope here, and part of the nuances can be addressed later in T336602

Event Timeline

PWaigi-WMF triaged this task as Medium priority.Feb 20 2023, 2:00 PM
SBisson renamed this task from Displaying article changes to Story creators: when Article has been renamed to Handle article rename.Apr 4 2023, 1:42 PM
SBisson moved this task from Definition to Ready for Dev on the Inuka-Team (Kanban) board.

Change 906745 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/Wikistories@master] [WIP] Article renaming

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

Change 906745 merged by jenkins-bot:

[mediawiki/extensions/Wikistories@master] Article renaming

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

Story builder:
What would happen to the Search experience to Commons as it currently takes the article title as a search query?
✅ The search pulls up different images once the article has been renamed, which is the expected behavior since the image search starts with the new title as the default search term in commons (see next question below).


When opening the builder from new article "Canine", the image search should start with "Canine" as pre-filled search query
✅ Yes, it does prefill the new article name into the commons search


What would happen if a user tries to add text from an article in the builder; will it redirect to the updated article or older link?
✅ It does redirect to the updated article and the user is able to select text per usual.

✅ When selecting the CTA to add text to a story being created from new article "Canine", it should show the user the text from "Canine" article (in this case the article text is not affected by renaming article)


Story Page:
Would the link to the renamed article be broken or would it redirect to the updated link?
✅ The link in the story page should redirect to the updated article link

Yes, there is a link that redirects to the updated article link. Example


Article page:

What would happen to stories attached to original article after renaming?
The 3 stories attached to original article "Dog" should display in the new article "Canine" the same way. Note the scope for this ticket is renaming an article only once. Renaming an article multiple times is out of scope here, and part of the nuances can be addressed later in T336602
✅ The stories that were attached to the original article are present on article after it was renamed.
For example, this article had this story and this story

Screenshot 2023-09-22 at 6.18.03 PM.png (536×1 px, 63 KB)