Hide error when polling new notes on issues fails
On the Issue and Merge Request pages, we poll for new Notes constantly. When the polling fails we then show an error "Something went wrong. Please try again".
While this error is not descriptive what actually happened, it is also not useful as no explicit action got performed that lead to this error message. The reasons why this error message can appear are:
- Our API is having issues
- The user has no internet connection
-
No longer authenticate(does not happen on polling, but on submits)
The 2nd case is the most common, especially when leaving a tab open and putting a laptop to sleep. The user then opens the tab again and sees an error message.
We already omit error message from GraphQL subscriptions via the WebSocket, we should do the same for polling on Notes.
Edited by Nicolas Dular