-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Replace MAX_USER_MENTIONS with Settings::RateLimit.mention_creation #13736
Replace MAX_USER_MENTIONS with Settings::RateLimit.mention_creation #13736
Conversation
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.
This works like a charm locally! ✨
The only thing that stood out to me was the when I add @-mentions to posts, my editor seems to lag out--I'm only able to add a single character at a time when typing out a username and have to manually "refocus" my cursor within the editor to finish the @-mention. I tested this on main
and experienced the same thing, so it doesn't seem like this is unique to your work (and might just be a "me" thing for all I know!), but I wanted to mention it just in case!
Also, 😿 at the removal of your name within the codebase.
Interesting...I tried to repro this locally but my local editor's autocomplete functionality seems to be pretty snappy 🤔 If you're still seeing this locally (on |
Okay... definitely sounds like a "me" thing then! I haven't restarted my browser yet, but I will definitely open an issue for it if it persists after restarting it. 😊 |
Ahead of merging this PR, I've updated the Forem Admin Guide to include this new configuration! ✅ |
What type of PR is this? (check all applicable)
Description
Addresses this
TODO
now that RFC #22 has been completed with #13367forem/app/models/article.rb
Lines 28 to 30 in 11bab73
Also removes my name from all the
TODO
s I added previously for myself 😿Related Tickets & Documents
Follow up task to RFC #22
QA Instructions, Screenshots, Recordings
Settings::RateLimit.mention_creation
):/admin/customization/config
, and check that you can see the limit for @-mentions in a post or comment in the "rate limit and antispam" section:You should now only be able to create up to the new number of max mentions that you just set 😃
UI accessibility concerns?
A backend change, so...none!
Added tests?
[Forem core team only] How will this change be communicated?
updated the README oradded inline documentationor in a forem.dev post
Are there any post deployment tasks we need to perform?
I don't think we have any;
Settings::RateLimit
s are already in production, so everything should Just Work™️