Page MenuHomePhabricator

ContentHandler::getChangeType is limited to a single type per edit, ignoring content model changes
Open, Needs TriagePublicBUG REPORT

Description

getChangeType is used for both automatic summaries and automatic change tags. While having just a single type is great for the automatic summary logic, it isn't good for the logic to automatically add change tags, since multiple tags can be valid. Specifically, while most of the tags shouldn't be combined, since they are either mutually exclusive or one implies the other (blanking the page includes removing a redirect, creating a new page that is a redirect includes creating a new page) content model change can be combined with the others

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
DannyS712 changed the subtype of this task from "Task" to "Bug Report".Apr 14 2021, 9:24 PM
DannyS712 moved this task from Unsorted to In progress on the User-DannyS712 board.

Change 679448 had a related patch set uploaded (by DannyS712; author: DannyS712):

[mediawiki/core@master] ContentHandler: add multiple automatic tags to edits if needed

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

DannyS712 renamed this task from ContentHandler::getChangeType is limited to a single type per edit to ContentHandler::getChangeType is limited to a single type per edit, ignoring content model changes.Apr 14 2021, 9:33 PM
DannyS712 updated the task description. (Show Details)

Change 766872 had a related patch set uploaded (by Sbailey; author: Sbailey):

[mediawiki/extensions/Linter@master] Delete lint errors when blank page saved while changing content type

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

Sbailey subscribed.

Lint errors are now being deleted during save of a blank page while the content model is being changed.
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Linter/ /766872

Change 766872 merged by jenkins-bot:

[mediawiki/extensions/Linter@master] Delete lint errors when blank page saved while changing content type

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