Skip to content

Add environment information in Alerts related GraphQL schema

What does this MR do?

A second iteration for #232492 (closed), this MR aims at making environment information available via graphQL.

Note that the feature is behind the enable_environment_path_in_alert_details feature flag, this MR addresses the following scenarios:

A) feature flag disabled B) feature flag enabled C) feature flag enabled D) feature flag enabled
environment is not queried from graphQL environment is queried from graphQL environment is queried from graphQL environment is queried from graphQL but it's null for some reason
path will always be null path is returned and it's a string path is null for some reason
The page looks exactly as it is right now The page has the environment displayed (in the table, environment is above details) The page looks as in B but the name of the environment is not a link The page will not display the environment in the summary but it will have an empty row in the table
Screenshot_2020-09-29_at_19.52.37 Screenshot_2020-09-29_at_19.50.43 Screenshot_2020-09-30_at_18.33.16 Screenshot_2020-09-29_at_19.01.04

Screenshots

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
Edited by Angelo Gulina

Merge request reports