Handle errors for real-time updates
Comment from: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8357#note_20845195
Regarding on where to proceed next with the flash messages, we already have a few places where we already have real-time updates right? For example, issue/merge request thread comments automatically appear. So I was wondering if we had some GitLab-wide design for these type of messages in general, some type of general design direction before diving into something specific. For example, would we design a flash message if thread comments fail to auto-update? And so should we work on that first instead of the flash message for failed title updates?
Let's understand the type of errors we can have with real-time updates, and a consistent way to approach that across GitLab.
Currently we don't show that we are polling since our loading spinner occupy the all screen and it would be annoying to have a spinning flashing every 30s. We do show an error message if the request goes wrong.
What should we do?
Places we already have real-time behaviour:
- Pipelines Table page
- Pipelines Table in Merge Request Page
- Pipelines Table in New Merge Request Page
- Pipelines Table in Commit Page
- Issue Title in Issue Page
- Deploy boards in Environments Table Page - EE
Places where we'll have real-time:
- Pipeline Graph in Pipeline show page - https://gitlab.com/gitlab-org/gitlab-ce/issues/25226
- Sidebar in Issue Page - https://gitlab.com/gitlab-org/gitlab-ce/issues/29982
- Sidebar in Merge Request Page - https://gitlab.com/gitlab-org/gitlab-ce/issues/29982
- Issue Description in Issue Page - https://gitlab.com/gitlab-org/gitlab-ce/issues/25049
- Merge Request Widget
- Issue and Merge Request State - https://gitlab.com/gitlab-org/gitlab-ce/issues/29978
- Comments and system notes - https://gitlab.com/gitlab-org/gitlab-ce/issues/30458