Correcting edit summaries (if own, last, & recent)
OpenPublic

Description

I propose to implement a mechanism to correct edit summaries (1) if it is your own edit (2) and if it is the last edit (3) during a short time span (e.g. 1 - 12 hours).

One possible way to do this would be a link on history pages, e.g. "(rollback | undo | fix summary)". A new page would then allow to fix the summary.

Such a function would allow to fix accidents such as empty summaries, switched summaries (when you have many tabs open), and half-completed raw summaries. Currently, minor or fake edits are required to provide a correct summary.

Under the proposed restrictions (own, last, recent), there is probably no potential for abuse (e.g. any following edit would make the previous summary permanent). This would allow to simply overwrite the edit summary field without the need for a summary history or log.

This might have to be restricted to registered users as theoretically an anonymous user with reassigned IP would be able to change summaries not belonging to him.

There is a current Village Pump proposal (http://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28proposals%29#Being_able_to_edit_your_edit_summaries) with currently only positive responses.

There is a also somewhat related closed bug (https://bugzilla.wikimedia.org/show_bug.cgi?id=10105) which did not discuss reasonable restrictions or implementation details. The current proposal addresses previous objections such as increased user interface, system, or code complexity.


Version: unspecified
Severity: enhancement

bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz13937.
Cacycle created this task.Via LegacyMay 3 2008, 7:11 PM
brion added a comment.Via ConduitMay 7 2008, 12:56 AM

We've generally blanket-rejected these requests in the past.

Might not be a bad idea to be able to handle the "oops" factor gracefully, though.

bzimport added a comment.Via ConduitMay 27 2008, 12:18 AM

thedukeofwaltham wrote:

What do you mean?

And, for the record, I do not like the sound of "blanket-rejected". It indicates a lack of willingness to examine the specific proposal on its merits. The strictest limit, one hour, would allow for all the benefits and would completely exclude any possibility of abuse (RfAs and RfArs have been cited mostly); I could even say that some misunderstandings might be avoided by editors changing a potentially offensive summary immediately afterwards, regretting their quick temper.

Cacycle added a comment.Via ConduitMay 31 2008, 11:31 PM

The proposed mechanism has been implemented in most online forum systems (such as phpBB) postings and has proven its usefulness and safety for years.

bzimport added a comment.Via ConduitJul 5 2008, 3:08 PM

dev wrote:

Just an FYI, I've actually been working on an extension that'd allow this to happen, it needs a bit of a cleanup, and I need some sleep, so I'll post it online sometime soon.

bzimport added a comment.Via ConduitJul 7 2008, 2:10 AM

dev wrote:

Patch to introduce PageHistoryTool hook

(In reply to comment #4)

Just an FYI, I've actually been working on an extension that'd allow this to
happen, it needs a bit of a cleanup, and I need some sleep, so I'll post it
online sometime soon.

Current code is online at http://dev.nigelj.com/mw/ it still needs a little bit of fixing, but it's nearly there.

Note, it requires the patch attached to work (n.b. changelog entry and hooks.txt edit removed in order to apply cleanly).

attachment PageHistoryTool-hook.patch ignored as obsolete

bzimport added a comment.Via ConduitJul 7 2008, 2:14 AM

dev wrote:

Correct patch

Oops sorry folks, the last patch added an extra hook arguement that is by no way needed, here is the correct one.

attachment PageHistoryTool-hook.patch ignored as obsolete

Huji added a comment.Via ConduitJul 7 2008, 1:52 PM

Nigel, I think a better (more generic) name should be used for the hook. Other than that, I find the idea useful.

bzimport added a comment.Via ConduitJul 10 2008, 10:38 PM

dev wrote:

(In reply to comment #7)

Nigel, I think a better (more generic) name should be used for the hook. Other
than that, I find the idea useful.

Yeah, I agree whole heartedly.

Naming it SpecialFixsummary would be a better choice (which I've now done locally).

bzimport added a comment.Via ConduitAug 13 2008, 12:25 PM

dev wrote:

Rebased patch w/ hooks.txt documentation

I've rebased the patch, just need to finish updating the extension etc, hopefully do that this weekend.

attachment mediawiki-pagehistorytool.patch ignored as obsolete

bzimport added a comment.Via ConduitAug 13 2008, 4:47 PM

ayg wrote:

The added hook seems relatively reasonable, independent of the merit of the request that this bug actually makes. Use tabs, though, not spaces. And you're missing documentation for the PageHistory object (first parameter passed) in hooks.txt.

Mattflaschen added a comment.Via ConduitAug 16 2008, 6:57 AM

I think the basic idea is worth considering, but an hour is far too long. Five minutes should be a maximum. Anything more would be too confusing, in my opinion.

siebrand added a comment.Via ConduitAug 18 2008, 12:29 AM

Keywords: patch, need-review

bzimport added a comment.Via ConduitAug 18 2008, 12:46 AM

dev wrote:

Rebased patch (r39564 w/ updated hooks.txt documentation and tabulation instead of spaces

(In reply to comment #10)

The added hook seems relatively reasonable, independent of the merit of the
request that this bug actually makes. Use tabs, though, not spaces. And
you're missing documentation for the PageHistory object (first parameter
passed) in hooks.txt.

Done in this update

(In reply to comment #11)

I think the basic idea is worth considering, but an hour is far too long. Five
minutes should be a maximum. Anything more would be too confusing, in my
opinion.

I agree, I plan in my next update of the extension to allow it to be customized.

Unfortunately I got distracted with other more important issues this weekend hopefully I'll be back onto this, this week.

(For reference, this hook allows the extension to hook in next to Rollback etc)

Attached: mediawiki-pagehistorytool.patch

bzimport added a comment.Via ConduitAug 18 2008, 5:19 PM

ayg wrote:

Looking over the code, I think that a more comprehensive hook to replace the current PageHistoryLineEnding hook (while still keeping that for backward compatibility) would be a good idea. Currently we collapse everything into a string before we pass it to the hook, which is stupid. Instead, we should ditch the $s variable, and have the ending be something like this:

$ret = null;
if( !wfRunHooks( 'EndPageHistoryLine', $this, $row, $next, &$arr, &$ret ) ) {
return $ret;
}
return '<li>' . implode( ' ', $arr ) . "</li>\n";

This still has some issues:

  • Do we guarantee what numeric index various array elements have, or what? There are like ten or twenty different items going into this line, which makes for a really complicated single hook.
  • Imploding on spaces doesn't help with things like $tools that should really be passed as arrays themselves.

I don't think adding one extra hook for every widget on the line we want to be able to modify is a good idea. Is there any way to elegantly and simply expose *all* of this info to hooks?

siebrand added a comment.Via ConduitNov 9 2008, 11:09 AM

Issues raised in comment 14 need to be addressed.

bzimport added a comment.Via ConduitSep 5 2009, 5:10 PM

nolan.j.white wrote:

*** Bug 20511 has been marked as a duplicate of this bug. ***

TheDJ added a comment.Via ConduitJan 10 2010, 4:32 PM

Created attachment 6944
Empty diff table alignment in Firefox

Attached:

TheDJ added a comment.Via ConduitJan 10 2010, 4:37 PM

sorry, image was for anther bug.

bzimport added a comment.Via ConduitNov 4 2011, 7:12 PM

sumanah wrote:

Changing keywords since Aryeh did review the patch.

Jdforrester-WMF added a comment.Via ConduitNov 13 2014, 4:53 PM

This very clearly isn't just "related" to bug 10105, but depends on it; this is merely modifying the default rights set for the functionality requested in bug 10105, so discussion should remain there.

jayvdb added a comment.Via ConduitNov 14 2014, 2:15 AM

Note that https://www.mediawiki.org/wiki/Extension:RevisionCommentSupplement provides similar functionality without the dependency on bug 10105

He7d3r awarded a token.Via WebNov 24 2014, 12:27 PM
Bugreporter added a subscriber: Bugreporter.Via WebJul 11 2015, 3:12 PM

Other reasons for allowing changing an edit summary:

  1. Not all content models support dummy edit. for example it's not possible to do a edit without changing the page's rendering in Wikibase. (which I think it's the most important reason)
  2. If others views a list of selected edits, for example using a tag filter, dummy
  3. Dummy edit is only a (bad) hack as it doesn't directly resolve the problem.

Add Comment