Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(27)

Issue 6547045: Option to require an edit comment when saving a page

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by Matthijs Kooijman
Modified:
12 years, 2 months ago
Reviewers:
thomas.j.waldmann, Thomas.J.Waldmann
Visibility:
Public.

Description

Requiring an edit comment helps to prevent people forgetting to fill in an edit message and helps to let new users know about the comment feature. This option is not meant as a way to really force people to fill in a useful comment, since there will always people who just fill in "..." or something like that to bypass this check. Implementation of feature request: http://moinmo.in/FeatureRequests/OptionToRequireEditComment The first patch set adds the require_comment option, the second patch set makes sure that the editor is shown again when any save error occurs. The patches have been tested using the text and GUI editors. None of the commandline editing tools (account homepage, maint globaledit) use action/edit.py (but PageEditor directly) so they should not be affected by this patch. The pytest testsuite does not show any problems with these patches.

Patch Set 1 #

Patch Set 2 : Reshow the editor on SaveError #

Patch Set 3 : Reshow the editor on SaveError (v2, simplified and works for new pages now) #

Total comments: 2

Patch Set 4 : Rename option to comment_required and fix description #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M MoinMoin/action/edit.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M MoinMoin/config/multiconfig.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
Matthijs Kooijman
12 years, 2 months ago (2012-09-20 14:37:10 UTC) #1
Thomas.J.Waldmann
http://codereview.appspot.com/6547045/diff/6003/MoinMoin/action/edit.py File MoinMoin/action/edit.py (right): http://codereview.appspot.com/6547045/diff/6003/MoinMoin/action/edit.py#newcode163 MoinMoin/action/edit.py:163: raise pg.SaveError(_('TextCha: Wrong answer! Try again below...')) btw, doing ...
12 years, 2 months ago (2012-09-20 15:11:48 UTC) #2
Matthijs Kooijman
> > MoinMoin/action/edit.py:163: raise pg.SaveError(_('TextCha: Wrong answer! Try > > again below...')) > btw, doing ...
12 years, 2 months ago (2012-09-20 15:22:26 UTC) #3
Thomas.J.Waldmann
12 years, 2 months ago (2012-09-20 15:36:22 UTC) #4
you can update the strings. just wanted to note. wrong strings are worse than
non-translated ones.

just make sure that the preview text AND the text it will finally save are both
as edited by the user.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b