Page MenuHomePhabricator

VisualEditor: Automatically add title of the section to edit summary
Closed, ResolvedPublic

Description

It would be very usefull if VE added the title of the section automatically to the edit summary, if the user only changed contents in one section. This is not the same request as bug 48429, the section should be added even if the user edited the whole page, but only changed contents of one section.

Rationale: The automatic section in the summary is very usefull if you check edits of other users. Two examples:

  1. A user adds a new external link (without summary). Without the section you have to look at the diff, but if the edit summary contained a /* External links */ you can guess what the user did even without summary.
  1. You want to find the user who added the image to section "Foo". Even if there are summaries like "+image" this doesn't help you much, but the summary /* Foo */ +image does help you. The section is also usefull if no additional summary is given, in the worst case you have to look at all changes to the whole article and to the section "Foo" to find the author.

Pseudo-algorithm:

  1. Find the position of the first and the last change in the new text (i.e. find the common initial and final strings in the old and the new text).
  2. Find the first headline above the last change (a line that starts with that character or before it and matches the pattern for headlines).
  3. If this headline is before the first change, you found the section.
  4. Else look for the next headline before it of higher level.
  5. If there is such a headline, go to step 3, else more than one section was changed.

Version: unspecified
Severity: enhancement

Details

Reference
bz51343

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:55 AM
bzimport set Reference to bz51343.

ignatzmice.wiki wrote:

I agree with Michael, this would be very useful.

This is the same as bug 50872; merging.

  • This bug has been marked as a duplicate of bug 50872 ***