-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
Collect errors from automatic suggestion backends #9638
Comments
This issue seems to be a good fit for newbie contributors. You are welcome to contribute to Weblate! Don't hesitate to ask any questions you would have while implementing this. You can learn about how to get started in our contributors documentation. |
I've over 3 years of experience in Python development and would love to contribute. @nijel Can you please assign this issue to me? |
@AbdullahHabib-github you're welcome! |
@nijel should I create a new view or am I supposed to integrate it in any of the existing views? |
There is already a view for managing automatic suggestions in https://github.com/WeblateOrg/weblate/blob/main/weblate/machinery/views.py, I think it should display such errors next to the configuration. Something similar can be seen on GitHub webhooks - one tab is settings, another logs: |
Is this issue still open? I am looking to contribute to it. |
Yes, this is open. There is a similar change happening for add-ons in #10053 , it should at least share the UI. |
Okay, so I am trying to understand the particular Python file and I came up with a temporary code: To resolve the issue of rate-limiting errors being silenced for admins, I made changes in the is_rate_limit_error method of the MachineTranslation class in the weblate/weblate/machinery/base.py file. def is_rate_limit_error(self, exc): I am trying to locally run on my machine as well. I'll add more as a move forward if the maintainer allows. Actually, this is my first PR and I want to take some time making it a valuable one. Therefore before committing any change I thought to let the maintainer know about it. |
The implementation should be:
|
Describe the problem
Currently, automatic suggestion backends silent themselves for errors which are most likely caused by rate limiting:
weblate/weblate/machinery/base.py
Lines 246 to 259 in 8b514cb
This is nice for user viewed suggestions as it doesn't show an error message on each page.
But this makes such errors invisible to admins.
Describe the solution you'd like
Collect such errors and display them in the management interface.
Describe alternatives you've considered
No response
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: