Page MenuHomePhabricator

Tone check runs on adjacent paragraphs
Closed, ResolvedPublicBUG REPORT

Description

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

  • Visit a page with tone check enabled
  • Start a new paragraph by placing your cursor at the beginning or end of an existing paragraph and pressing return
  • Add text to the newly created paragraph

What happens?:

The paragraph that your cursor was initially within is also edit checked, despite you not having made a meaningful edit to it.

What should have happened instead?:

Only the new paragraph should be checked.

Event Timeline

Change #1172879 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] Edit check: skip collapsed ranges when computing modified content branch nodes

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

DLynch moved this task from Inbox to Code Review on the Editing-team (Kanban Board) board.

Patch stops splitting a paragraph from being considered a modification to both paragraphs. Arguably splitting a paragraph in the middle should perhaps count, but "splitting" a paragraph by starting a new paragraph from the beginning / end of the paragraph really shouldn't.

We'd need to reconsider this approach if we want pure deletions to count as modifications, since they'd inherently produce a collapsed range representing the place the deletion occurred.

Change #1172879 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Edit check: skip collapsed ranges when computing modified content branch nodes

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

Change #1173471 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@wmf/1.45.0-wmf.11] Edit check: skip collapsed ranges when computing modified content branch nodes

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

Change #1173471 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@wmf/1.45.0-wmf.11] Edit check: skip collapsed ranges when computing modified content branch nodes

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

Mentioned in SAL (#wikimedia-operations) [2025-07-28T22:42:57Z] <kemayo@deploy1003> Started scap sync-world: Backport for [[gerrit:1173470|Tone check: don't cause an error when the model fails]], [[gerrit:1173471|Edit check: skip collapsed ranges when computing modified content branch nodes (T400573)]]

Mentioned in SAL (#wikimedia-operations) [2025-07-28T22:45:13Z] <kemayo@deploy1003> kemayo: Backport for [[gerrit:1173470|Tone check: don't cause an error when the model fails]], [[gerrit:1173471|Edit check: skip collapsed ranges when computing modified content branch nodes (T400573)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-07-28T22:52:32Z] <kemayo@deploy1003> Finished scap sync-world: Backport for [[gerrit:1173470|Tone check: don't cause an error when the model fails]], [[gerrit:1173471|Edit check: skip collapsed ranges when computing modified content branch nodes (T400573)]] (duration: 09m 31s)