Skip to content

Call to validate_query in custom metrics form is not retried

What does this MR do?

Custom metrics form does not retry after validate query request hits a 202. The expectation is to retry because the backend queues requests and caches results that are only available for subsequent calls (more info here #13135 (comment 231228162)).

Additionally, a loading state is introduced because the backOff calls to validate queries take longer time.

Screenshots

Before After
before_query_validate after_query_validate3

Screenshot with Validating query... text

Screen_Shot_2019-10-17_at_9.22.00_PM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • 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 #13135 (closed)

Edited by 🤖 GitLab Bot 🤖

Merge request reports