GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Edit Task
  • Edit Related Tasks...
  • Create Subtask
  • Edit Parent Tasks
  • Edit Subtasks
  • Merge Duplicates In
  • Close As Duplicate
  • Edit Commits
  • Edit Mocks
  • Mute Notifications
  • Protect as security issue
  • MediaWiki-Page-rename
  • (Backlog)

This view

  • Original page
  • New address

GeezerVison is showing phabricator.wikimedia.org — T296035 Redirects created from page moves should not be included in the edit count

Page MenuHomePhabricator
Log In
Create Task
Maniphest T296035

Redirects created from page moves should not be included in the edit count
Closed, ResolvedPublicBUG REPORT
Actions

  • Edit Task
  • Edit Related Tasks...
  • Create Subtask
  • Edit Parent Tasks
  • Edit Subtasks
  • Merge Duplicates In
  • Close As Duplicate
  • Edit Related Objects...
  • Edit Commits
  • Edit Mocks
  • Mute Notifications
  • Protect as security issue
Assigned To
GTrang
Authored By
GTrang
Nov 18 2021, 9:58 PM2021-11-18 21:58:36 (UTC+0)
Project Tags
  • MediaWiki-Page-rename (Backlog)
Referenced Files
None
Subscribers
Aklapper
Ammarpad
GTrang
Jdforrester-WMF

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Move a page with a redirect left behind

What happens?: The user's edit count is increased by 2.

What should have happened instead?: The user's edit count is increased by 1.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

The change in edit count occurs for each individual move. So, if a page moved had a talk page, then two changes in the user's edit count would occur (one for the subject page move and another for the talk page move).

This is caused by Change 708357, which uses PageUpdater to create the redirect page, thus initiating another (probably undesirable) increment of the edit count.

Details

Related Changes in Gerrit:
SubjectAuthorRepoBranchLines +/-
Increment edit count only if the redirect is suppressedGeoffreyT2000mediawiki/coremaster+2 -1
Customize query in gerrit

Event Timeline

GTrang created this task.Nov 18 2021, 9:58 PM2021-11-18 21:58:36 (UTC+0)
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 18 2021, 9:58 PM2021-11-18 21:58:37 (UTC+0)
Ammarpad subscribed.Dec 8 2021, 8:59 AM2021-12-08 08:59:22 (UTC+0)
Comment Actions

Is there evidence this was not the case before? These are two distinct actions: page move = 1 edit; redirect creation = 1 edit. That's 2 edits in total.

The redirect creation is considered completely separate action even though it happens as a by-product in some sense, but it does much more than that since a new author and creation timestamp is recorded making it a complete new (redirect) page.

Aklapper closed this task as Invalid.Dec 26 2021, 7:26 PM2021-12-26 19:26:43 (UTC+0)
Comment Actions

No reply from reporter. Closing.

GTrang reopened this task as Open.Dec 27 2021, 4:08 AM2021-12-27 04:08:29 (UTC+0)
Comment Actions

I have created https://www.thetestwiki.org/wiki/T296035 and https://en.wikipedia.org/wiki/User:GeoffreyT2000/T296035 on The Test Wiki and the English Wikipedia respectively to test the difference. Before moving, my edit counts were 94 and 41,894 respectively. After moving, my edit counts increased to 95 and 41,896 respectively. Clearly, moving a page used to increase the user's edit count by 1 (and The Test Wiki still uses an older version of MediaWiki), but now (in MediaWiki 1.38) the user's edit count is increased by 2.

gerritbot added a comment.Feb 24 2022, 4:09 PM2022-02-24 16:09:43 (UTC+0)
Comment Actions

Change 765563 had a related patch set uploaded (by GeoffreyT2000; author: GeoffreyT2000):

[mediawiki/core@master] Increment edit count only if the redirect is suppressed

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

gerritbot added a project: Patch-For-Review.Feb 24 2022, 4:09 PM2022-02-24 16:09:44 (UTC+0)
GTrang added a project: MW-1.39-release.Jun 28 2022, 4:55 AM2022-06-28 04:55:02 (UTC+0)
Comment Actions

Let's make this a blocker for MW 1.39. If the change gets merged in master, then I will backport it to 1.38.

Pppery removed a project: MW-1.39-release.Jul 1 2022, 11:43 PM2022-07-01 23:43:23 (UTC+0)
Pppery subscribed.
Comment Actions

The idea that something this trivial should block a release is utterly ridiculous.

Pppery unsubscribed.Jul 1 2022, 11:43 PM2022-07-01 23:43:56 (UTC+0)
Jdforrester-WMF subscribed.Jul 12 2022, 2:09 PM2022-07-12 14:09:31 (UTC+0)
Comment Actions
In T296035#7590148, @GeoffreyT2000 wrote:

I have created https://www.thetestwiki.org/wiki/T296035 and https://en.wikipedia.org/wiki/User:GeoffreyT2000/T296035 on The Test Wiki and the English Wikipedia respectively to test the difference. Before moving, my edit counts were 94 and 41,894 respectively. After moving, my edit counts increased to 95 and 41,896 respectively. Clearly, moving a page used to increase the user's edit count by 1 (and The Test Wiki still uses an older version of MediaWiki), but now (in MediaWiki 1.38) the user's edit count is increased by 2.

So previously there was a bug, and that was fixed, but you want it reverted? Can you explain in more detail why? Your commit's comment justifying the change (claiming that after the fix it will count as two edits, not three) is at odds with your comments here in Phabricator.

GTrang added a comment.Jul 12 2022, 2:53 PM2022-07-12 14:53:21 (UTC+0)
Comment Actions
In T296035#8072424, @Jdforrester-WMF wrote:
In T296035#7590148, @GeoffreyT2000 wrote:

I have created https://www.thetestwiki.org/wiki/T296035 and https://en.wikipedia.org/wiki/User:GeoffreyT2000/T296035 on The Test Wiki and the English Wikipedia respectively to test the difference. Before moving, my edit counts were 94 and 41,894 respectively. After moving, my edit counts increased to 95 and 41,896 respectively. Clearly, moving a page used to increase the user's edit count by 1 (and The Test Wiki still uses an older version of MediaWiki), but now (in MediaWiki 1.38) the user's edit count is increased by 2.

So previously there was a bug, and that was fixed, but you want it reverted? Can you explain in more detail why? Your commit's comment justifying the change (claiming that after the fix it will count as two edits, not three) is at odds with your comments here in Phabricator.

There has never been a "bug". The behavior prior to the PageUpdater change has always been to increment the edit count by 1 for each move, with no additional increment for the redirect. Now, with PageUpdater being used to create the redirect, PageUpdater will also increment the edit count for the redirect. The correct behavior is to treat the null edit and the redirect as the same move, not as separate edits, when updating the edit count. So, the original change actually introduced a bug, not fixed one.

Jdforrester-WMF added a comment.Jul 12 2022, 3:30 PM2022-07-12 15:30:31 (UTC+0)
Comment Actions
In T296035#8072525, @GeoffreyT2000 wrote:
In T296035#8072424, @Jdforrester-WMF wrote:
In T296035#7590148, @GeoffreyT2000 wrote:

I have created https://www.thetestwiki.org/wiki/T296035 and https://en.wikipedia.org/wiki/User:GeoffreyT2000/T296035 on The Test Wiki and the English Wikipedia respectively to test the difference. Before moving, my edit counts were 94 and 41,894 respectively. After moving, my edit counts increased to 95 and 41,896 respectively. Clearly, moving a page used to increase the user's edit count by 1 (and The Test Wiki still uses an older version of MediaWiki), but now (in MediaWiki 1.38) the user's edit count is increased by 2.

So previously there was a bug, and that was fixed, but you want it reverted? Can you explain in more detail why? Your commit's comment justifying the change (claiming that after the fix it will count as two edits, not three) is at odds with your comments here in Phabricator.

There has never been a "bug". The behavior prior to the PageUpdater change has always been to increment the edit count by 1 for each move, with no additional increment for the redirect.

That definitely sounds like a bug to me; two entries in RecentChanges but only one edit increment. Clearly, you think otherwise.

Now, with PageUpdater being used to create the redirect, PageUpdater will also increment the edit count for the redirect. The correct behavior is to treat the null edit and the redirect as the same move, not as separate edits, when updating the edit count. So, the original change actually introduced a bug, not fixed one.

Right, so even though you say there's a bug in incrementing by 2 instead of 1, your changes don't fix it, but instead fix a different one, of incrementing by 3 instead of 2?

GTrang added a comment.Jul 14 2022, 6:28 PM2022-07-14 18:28:20 (UTC+0)
Comment Actions
In T296035#8072781, @Jdforrester-WMF wrote:
In T296035#8072525, @GeoffreyT2000 wrote:
In T296035#8072424, @Jdforrester-WMF wrote:
In T296035#7590148, @GeoffreyT2000 wrote:

I have created https://www.thetestwiki.org/wiki/T296035 and https://en.wikipedia.org/wiki/User:GeoffreyT2000/T296035 on The Test Wiki and the English Wikipedia respectively to test the difference. Before moving, my edit counts were 94 and 41,894 respectively. After moving, my edit counts increased to 95 and 41,896 respectively. Clearly, moving a page used to increase the user's edit count by 1 (and The Test Wiki still uses an older version of MediaWiki), but now (in MediaWiki 1.38) the user's edit count is increased by 2.

So previously there was a bug, and that was fixed, but you want it reverted? Can you explain in more detail why? Your commit's comment justifying the change (claiming that after the fix it will count as two edits, not three) is at odds with your comments here in Phabricator.

There has never been a "bug". The behavior prior to the PageUpdater change has always been to increment the edit count by 1 for each move, with no additional increment for the redirect.

That definitely sounds like a bug to me; two entries in RecentChanges but only one edit increment. Clearly, you think otherwise.

Now, with PageUpdater being used to create the redirect, PageUpdater will also increment the edit count for the redirect. The correct behavior is to treat the null edit and the redirect as the same move, not as separate edits, when updating the edit count. So, the original change actually introduced a bug, not fixed one.

Right, so even though you say there's a bug in incrementing by 2 instead of 1, your changes don't fix it, but instead fix a different one, of incrementing by 3 instead of 2?

Neither the current code nor the proposed new code will increment the edit count by 3 for any move. The current code does two increments for each move leaving a redirect behind, one for the move and another for the redirect. With the proposed new code, the non-PageUpdater increment in MovePage.php will only happen if the redirect is suppressed. If the redirect is left behind, then that increment is redundant, since another increment is already done with PageUpdater creating the redirect.

gerritbot added a comment.Oct 30 2022, 4:55 AM2022-10-30 04:55:42 (UTC+0)
Comment Actions

Change 765563 abandoned by GeoffreyT2000:

[mediawiki/core@master] Increment edit count only if the redirect is suppressed

Reason:

A different patch will be proposed instead.

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

Maintenance_bot removed a project: Patch-For-Review.Oct 30 2022, 5:30 AM2022-10-30 05:30:19 (UTC+0)
GTrang renamed this task from Moving a page with a redirect left behind should only count as one edit to Redirects created from page moves should not be included in the edit count.Jan 15 2025, 5:10 AM2025-01-15 05:10:23 (UTC+0)
GTrang closed this task as Resolved.
GTrang claimed this task.
GTrang updated the task description. (Show Details)
Comment Actions

Fixed by https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1099368.

Log In to Comment
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.