Skip to content

Show error message when batch diffs errors

Phil Hughes requested to merge ph/337216/showErrorMessageBatchDiffs into master

What does this MR do?

Whenever a batch diffs request errors we currently do not tell the user, instead a loading spinner keeps showing. This changes that to instead remove the loading spinner when an error happens and shows an alert message with a button to retry loading the diffs.

Also, this will be the only alert visible in the Changes tab, suppressing other competing alters. For example, when some diffs are auto-collapsed we display a warning alert at the top. This change makes sure that this new error alert is the only one visible.

Screenshots or Screencasts (strongly suggested)

Screenshot_2021-09-07_at_10.31.12

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Closes #337216 (closed)

Edited by Pedro Moreira da Silva

Merge request reports