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)

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.
Priority: -- → P3
A lot to figure out here. => 3pt
Whiteboard: u=sumo-team c=kpidash p= → u=sumo-team c=kpidash p=3
Whiteboard: u=sumo-team c=kpidash p=3 → u=sumo-team c=kpidash p=3 s=2013.5
Target Milestone: 2012.17 → 2013Q1
I'm going to take a stab at this tomorrow.
QA Contact: kb-software → mcooper
wrong field, oops
Assignee: nobody → mcooper
QA Contact: mcooper
QA Contact: kb-software
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)
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.
Pushed ratelimit v0.3.0 to PyPI. This isn't exactly Mike's patch but it should get the job done.
Flags: needinfo?(james)
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.