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

Retries for notifications #474

Closed
wants to merge 5 commits into from

Conversation

vincent-olivert-riera
Copy link
Contributor

No description provided.

This function is a thin wrapper of the existing util::post function but with a
retry mechanism that depends on the response's status code.

This function can be used by our notifiers so we can retry sending a
notification if, for instance, we have received a "Too Many Requests (429)" the
first time.
Some times the end points are having temporary issues and return an error
response, so retrying after some time could increase the chance of getting the
notification delivered.
Some times the end points are having temporary issues and return an error
response, so retrying after some time could increase the chance of getting the
notification delivered.
Some times the end points are having temporary issues and return an error
response, so retrying after some time could increase the chance of getting the
notification delivered.
After clicking the notifier test button, it can take some time until the request
is processed, the response is received and the whole form submission ends up on
a page refresh.

Because of that potential delay, the users may think that they did not click the
button properly and try to click it again.

To avoid that situation we have added some UI feedback so when the users click
the test button, it gets disabled so they cannot click it again, and also its
text changes to "Testing..." to clearly state that the test is ongoing.

The corresponding localization for "Testing" has also been added.
@vincent-olivert-riera vincent-olivert-riera requested a review from a team as a code owner January 26, 2024 10:02
@vincent-olivert-riera
Copy link
Contributor Author

Need to check why the tests are failing.

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.

1 participant