Page MenuHomePhabricator

Provide an optional "Section History" link
Closed, DeclinedPublic

Description

When dealing with certain long discussions and/or complex section edits it is helpful to isolate (filter) the history of edits within a specific section. What I propose is that an optional (see below what I mean by this) link be placed on each section header (just after the current Section-Edit link). This would invoke a History page that is filtered as follows:

  1. any edit that references the given section in the <span.autocomment> text, and
  2. any edit that was the entire page (and so might include the targeted section).

As for what I mean by optional, my thought is it could be

  1. a user configurable setting ( [_] Show Section History link ) under Preferences, and/or
  2. a __NOSECTIONHISTORY__ magic word option similar to __NOEDITSECTION__.

Other than this filtering of which edits to list, the History page would act exactly the same as it does now.

Event Timeline

Danny_B triaged this task as Lowest priority.Aug 13 2016, 7:07 PM
Danny_B updated the task description. (Show Details)
Danny_B updated the task description. (Show Details)
Aklapper renamed this task from Feature request for an optional "Section-History" link. to Provide an optional "Section History" link.Aug 14 2016, 1:26 PM

WITHDRAWN -- I just realized a major problem with this idea and until that can be addressed even I do not want to see this tool developed. The problem is that if, as I said in the original description, "the History page would act exactly the same as it does now" then all Hell would break loose because a multi-diff undo would incorporate other edits in other sections that are not showing in the list.

That would be bad, Very Bad!

demon added subscribers: TheDJ, demon.

Sorry, not going to happen.

Like @TheDJ said on-wiki, there's basically no way to do this in a sane way--especially from the performance perspective. Also: MediaWiki doesn't track sections, so renames, moving, etc etc would make this basically impossible. Plus templates can add sections, all other fun stuff like that.