Merge lp:~zematynnad/rnr-server/active_passive_686547 into lp:rnr-server
Proposed by
Danny Tamez
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 116 | ||||
Proposed branch: | lp:~zematynnad/rnr-server/active_passive_686547 | ||||
Merge into: | lp:rnr-server | ||||
Diff against target: | 0 lines | ||||
To merge this branch: | bzr merge lp:~zematynnad/rnr-server/active_passive_686547 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Nelson (community) | Approve | ||
Review via email: mp+47719@code.launchpad.net |
Description of the change
Added a simple model to enable setting the moderation mode to active or passive from the admin site. Default is passive mode. When in active mode a review will automatically be flagged upon creation.
To post a comment you must log in.
Thanks Danny. The only necessary change is the assertions mentioned.
{{{ /code.launchpad .net/~zematynna d/rnr-server/ active_ passive_ 686547/ +merge/ 47719 ? is_active_ mode() (or property) rather then RNRSettings. get_moderation_ mode(). It would mean the callsite doesn't need to know about the settings? But either way, the code looks great. decoded[ 'hide'] is False and True respectively, not that the key exists?
15:49 < zematynnad> noodles: achuni: mvo: would any of you have some time to look at
https:/
15:51 < noodles> zematynnad: Yep, I'll grab it now.
15:52 < zematynnad> thanks noodles
16:05 < noodles> Hey zematynnad, do you think it would make sense to do RNRSettings.
16:13 < noodles> zematynnad: the only other thing is lines 316 and 335. AFAICT, you're really wanting to be asserting that the *value* of response_
16:14 < zematynnad> noodles - I missed your first comment earlier - sure, I can change that
16:14 < noodles> zematynnad: only if you think it would improve the code - it was just a thought.
}}}