Last modified: 2014-09-08 10:55:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T20052, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18052 - Restrict missingsummary to configurable namespaces
Restrict missingsummary to configurable namespaces
Status: NEW
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: René Kijewski
: patch, patch-reviewed
Depends on:
Blocks: 18050
  Show dependency treegraph
 
Reported: 2009-03-19 16:37 UTC by Church of emacs
Modified: 2014-09-08 10:55 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
new variable '$wgForceEditSummaryFor' (1.83 KB, patch)
2009-03-21 09:18 UTC, René Kijewski
Details

Description Church of emacs 2009-03-19 16:37:10 UTC
There is an option in MediaWiki to warn the user if he doesn't enter a summary. This should be configurable for each namespace. For example, missingsummary might be useful in the article namespace, but it isn't on talk pages.
Comment 1 René Kijewski 2009-03-20 09:41:01 UTC
There are several ways to solve this problem:
* A whitelist for which namespaces never a warning is to be displayed (regardless of the [default] user settings).
* A blacklist.
* A fully configurable list of namespaces. (But how to treat the existing user settings?)
* An option, if there should be no warning on talk pages.
I prefer the last one; it would be also easy to implement.
Comment 2 Church of emacs 2009-03-20 09:58:00 UTC
I prefer a configurable list in LocalSettings.php.
Talk pages are just one example where summaries are not always needed. User pages also require no summary (in most cases). Or think of village-pump-like pages in the project namespace where people sign their posts.
An array should be sufficient, something that can be changed in LocalSettings.php (with $wgMissingsummary['0'] = true; or so).
I can't see why there would be a problem with existing user settings. Users would still be able to enable missingsummary, but it would be only displayed on namespaces defined as eligible for missingsummary (and I think this is a good thing, as most people who enable this function don't want to be warned on (for example) talk pages).
Comment 3 René Kijewski 2009-03-20 10:23:29 UTC
> I prefer a configurable list in LocalSettings.php.
So you propose a blacklist and/or whitelist.

> Or think of village-pump-like pages in the project namespace
Well, on the village pump one mostly always edits an existing section, or inserts a new one. If a user edits the page as a whole, a  summary would be appropriate. Likely if one edits in another's user namespace. In your own NS you don't have to enter a summary by now.

> I can't see why there would be a problem with existing user settings.
If you'd let the users decide on which namespaces they want to be warned, there would be a problem how to threat their existing settings; whether to treat it as all namespaces or a predetermined list of namespaces (e.g. all subject namespaces).
Comment 4 Church of emacs 2009-03-20 13:50:13 UTC
I propose a predefined list in DefaultSettings with a reasonable configuration (for example: summary is needed only in namespace 0) which can be overwritten in LocalSettings.

> Well, on the village pump one mostly always edits an existing section, or inserts a new one.
Even if you have some kind of automatic summary (like through "edit a section"), you still get a warning. The summary is not compared to an empty string, but to the autosummary (see line 876 in includes/EditPage.php). So, you still have problems on the village-pump.

> If you'd let the users decide on which namespaces they want to be warned [...]
I don't think it is necessary to allow the user to configure this option for each namespace. The sysadmin defines the namespaces for missingsummary in LocalSettings.php and the user decides whether he wishes to enable the option for those namespaces or not.
Comment 5 René Kijewski 2009-03-20 16:25:06 UTC
> Even if you have some kind of automatic summary (like through "edit a
> section"), you still get a warning.
I thought I read it is only tested not to be empty. I would even say it should be changed this way. Was it not that way of late *confused*.

But after all I think my idea could be a generic improsement, not only fitting the current needs of de.wp. But for short a whitelist/blacklist should be sufficient. Maybe a should open a new bug afterwards ...
Don't you wanna file a patch a developer could commit?
Comment 6 Church of emacs 2009-03-20 16:54:45 UTC
Testing against an empty string as opposed to the auto summary isn't helping what missingsummary tries to accomplish. After all, the aim is that the user fills out the summary, not that it gets filled out automatically. The user is supposed to give additional information, the reasons for his edit and his sources and while /* heading */ is useful, it doesn't replace a summary.

> Don't you wanna file a patch a developer could commit?
I'm sorry, but the soonest moment for me to look into the code is in two weeks, after I finished my [[Abitur]] :)
Comment 7 René Kijewski 2009-03-20 17:12:50 UTC
> Testing against an empty string as opposed to the auto summary isn't helping
Since there is <ref> the sources shouldn't be kept in the summary at all. What shall I write when I correct a comma? "Fixed interpunctuation", kinda exaggerated. I think it is of vital importance to keep editing simple. We should not overdo the whole summary-is-essential thing.

> I'm sorry, but the soonest moment for me to look into the code is in two weeks,
> after I finished my [[Abitur]] :)
Aber wehe dir, wenn du dann keinen Einser-Schnitt hast ;)
Comment 8 Church of emacs 2009-03-20 17:22:51 UTC
> We should not overdo the whole summary-is-essential thing.
That's an argument against missingsummary and it is correct (I abstained in the dewiki poll because of that). However, it doesn't have anything to do with editing a section vs. editing the whole page. If you wish to force summaries, you wish to force them in both cases.
Comment 9 René Kijewski 2009-03-21 09:18:21 UTC
Created attachment 5949 [details]
new variable '$wgForceEditSummaryFor'

Introduces a new global variable '$wgForceEditSummaryFor' which may contain an array of the namespaces where a blank summary should be suppressed.
If it stores an empty array (default), all a blank summary should be suppressed on all namespaces.
E.g. $wgForceEditSummaryFor[] = NS_MAIN; in LocalSettings.php enforces a summary only in the article namespace.
Comment 10 Sam Reed (reedy) 2011-11-20 18:03:08 UTC
Patch still applies (very minor conflict on the global lines)

But the resultant code is horrible
Comment 11 Church of emacs 2011-11-20 18:06:16 UTC
From a usability viewpoint, missingsummary is horrible. A rewrite in Javascript would be much better.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links