-
-
Notifications
You must be signed in to change notification settings - Fork 642
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
Handle failure to edit OT channel names #2500
Comments
What do we actually want to happen when this occurs? We can't prevent this from happening in the first place (the list of blocked words isn't public), so any action has to be reactive (i.e. try/except) as opposed to proactive (not allowing adding of the name to the pool). I imagine a I suppose the other issue is how we'd test the fix, since the error is only raised when inside a Discovery server. |
All of that plus deactivating the blocked otn. You don't need the message since you have the status code
We would artificially raise an exception (even with a temporary line inside the function) |
There is previous discussion on this here: #2282 |
Do you mean deleting the blocked otn? It seems people were broadly against that in #2282, but not sure if that still applies.
Right, yeah. Idk why I didn't think of that 😅 |
Deactivating a name sets a column in the database to indicate it as inactive, rather than fully removing it. Deactivated names can't be chosen as ot names. IIRC this feature was added to prevent a name being re-added if it was removed, and so it can still be looked at in the future if wanted (you can I'm not sure about a warning with |
Ah, I see. That sounds good then, yes.
Makes sense, I think a message to mod-meta for good visibility works in-place of a Can I please be assigned to this, and I'll hopefully tackle it in the upcoming week. |
Assigned 👍 |
Closing as a duplicate of #2282 |
Sentry Issue: BOT-3F4
The blocked word was "swallow". I guess we should handle an excpetion here.
The text was updated successfully, but these errors were encountered: