https://bugzilla.wikimedia.org/show_bug.cgi?id=51343

       Web browser: ---
            Bug ID: 51343
           Summary: VisualEditor: Automatically add title of the section
                    to edit summary
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: MediaWiki integration
          Assignee: krinklem...@gmail.com
          Reporter: listenle...@gmail.com
                CC: jforres...@wikimedia.org, krinklem...@gmail.com,
                    roan.katt...@gmail.com, tpars...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

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.

2. 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to