-
Notifications
You must be signed in to change notification settings - Fork 0
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
US1: Remove limitation on the number of messages allowed to be send in a minute #20
Conversation
…ting, non function fatal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good and make sense! However, the lint tests need to be passed before it can be merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The deletion is quite self-explanatory, and will be better if there are some comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code changes look good but make sure the lint tests pass before merging!
US1: Remove limitation on the number of messages allowed to be send in a minute Description:
Testing:
Comments on not passing the lint test:
We are not going to try to fix this lint test error, as this user story is trying to disable the message rate limit in chats. It would be counterintuitive for us to pass this lint test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lint tests works so its all good!
Fixed. Check the newest code for reference. |
Pull Request Test Coverage Report for Build 11283411447Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you fixed your tests and removed code that was nonessential. Great work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Impressive work to get all tests passed!
Update:
Removed 2 test functions that tests message flooding prevention, We removed these tests because as this user story is trying to disable the message rate limit in chats.
The tests are in the test/messaging.js file. Here are the following test.
Description:
Removed the limit on the number of messages that are allowed to be sent within a minute.
Removed the error message after a user tried to send multiple messages within a minute.
Fixes #9
Fixes #10
What Has Been Changed:
Now if someone is logged into their Nodebb account and has chosen someone to chat with, when they send multiple messages in any chat within a minute, then all messages should be delivered without any delay or constraints.
Now if someone is part of a chat with multiple members, when they send multiple messages in rapid succession, then each message should appear in the correct order on the recipients' screens.
Now if someone sends multiple messages within a minute, when the messages contain different content (text, links, emojis, or attachments), then all message types should be sent successfully without constraints.
Now if someone sends multiple messages rapidly, when the messages are sent within a one-minute window, then there should be no error message or warning indicating a rate limit has been reached.
Code Changes :
• Modified Config.json, src/api/chats.js, src/middleware/ratelimit.js
Modified rateLimitExceeded function in chat.js
Testing:
Tested & Verified that the user are allowed to send multiple message within a minutes into a direct messages chat and group chats
Tested & Verified that the error message for limiting the amount of message sent is not visible after multiple message are sent within a minute