Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rate limiting for mentor requests #242

Closed
wants to merge 1 commit into from

Conversation

chynh
Copy link
Contributor

@chynh chynh commented Oct 25, 2020

Description

Implement a rate limit on mentor requests.

  • Added a new column to Mentor Request Table to indicate a start date for a cycle (one month) to track whether a user has reached a limit or not.

  • When submitting a request, bot will check for the number of requests made within a cycle. If the limit has not been reached, it will proceed to add request record and let the user know how many requests are remaining. If not, it will notify the user the new date on which the user can start making request again.

  • NOTE: prod table should have a new view that is sorted by created At value in descending order and would also need to have start date (name can change to one that makes more sense) which indicates the start of the cycle.

This did work on PII removed table. Open to suggestion on modifying the messaging to the user or how the view or new column should be named or any other suggestions.

Fixes #176

@JudsonStevens
Copy link
Collaborator

@chynh - thanks a bunch for your work here. Our apologies that we didn't get it merged! We've decided to rewrite the bot and as such will be closing this PR. We'll definitely be using your work to add this feature into the rewrite. I'll be adding you as a coauthor to the commit that implements this feature. Again, thanks for the work and sorry we didn't get it in sooner!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rate Limit on Mentor Requests
2 participants