Closed
Bug 785850
Opened 14 years ago
Closed 13 years ago
Add rate limiting to number of support forum helpful votes per day
Categories
(support.mozilla.org :: Knowledge Base Software, task, P3)
support.mozilla.org
Knowledge Base Software
Tracking
(Not tracked)
RESOLVED
FIXED
2013Q1
People
(Reporter: atopal, Assigned: mythmon)
References
Details
(Whiteboard: u=sumo-team c=kpidash p=3 s=2013.5)
Please add rate limiting to the number of support forum helpful votes that visitors can use per day.
* Let the limit be 10 per day for starters.
* After the 10th vote, just stop counting any additional votes
* For anonymous visitors use the IP to identify them.
Updated•14 years ago
|
Priority: -- → P3
Comment 1•13 years ago
|
||
A lot to figure out here. => 3pt
Whiteboard: u=sumo-team c=kpidash p= → u=sumo-team c=kpidash p=3
Comment 2•13 years ago
|
||
Related discussion:
https://support.mozilla.org/forums/contributors/708886
| Reporter | ||
Updated•13 years ago
|
Whiteboard: u=sumo-team c=kpidash p=3 → u=sumo-team c=kpidash p=3 s=2013.5
Target Milestone: 2012.17 → 2013Q1
| Assignee | ||
Comment 3•13 years ago
|
||
I'm going to take a stab at this tomorrow.
QA Contact: kb-software → mcooper
Updated•13 years ago
|
QA Contact: kb-software
Comment 5•13 years ago
|
||
If this slips (it probably will) it's my fault. It depended on an upstream change in django-ratelimit and between the travel and conferences last week, I didn't get to it in time.
I'm working on this right now, though, so I'm need-info?ing myself, and I'll clear that out as soon as I'm done.
Flags: needinfo?(james)
| Assignee | ||
Comment 6•13 years ago
|
||
I sketched out how this would look in SUMO, assuming some things about how django-ratelimit works. It was pretty simple, and just requires some careful testing when doing things manually. Most of the rest of the work is writing some tests for this and verifying that it works as expected.
In other words, once James' changes to django-ratelimit happen, this should be pretty quick. James is doing the heavy lifting here, so once that is done the SUMO part should be easy.
Comment 7•13 years ago
|
||
Pushed ratelimit v0.3.0 to PyPI. This isn't exactly Mike's patch but it should get the job done.
Flags: needinfo?(james)
| Assignee | ||
Comment 8•13 years ago
|
||
| Assignee | ||
Comment 9•13 years ago
|
||
Landed in: https://github.com/mozilla/kitsune/65b9a5bfce11c9a35b7d3b66c7b057e9ae5c6783
Deployed to master just now.
Tested that one person hitting the limit on stage doesn't hurt others, and that IP and user are limited separately.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•