Skip to content

Update annotations graphql query

Dhiraj Bodicherla requested to merge update-annotations-graphql-query into master

What does this MR do?

This MR updates the following on FE to match the GraphQL properties for annotations on BE

  1. Annotations fetch GraphQL query params
    1. starting_at -> startingAt
    2. ending_at -> endingAt
    3. Added the dashboard start time so the annotation fetch is optimized
  2. Annotations GraphQL response structure is updated
    1. Response structure and parsing logic
    2. Specs
    3. Mock data

Notes

  1. Everything is still behind metrics_dashboard_annotations feature flag.
  2. Happy to jump on a call to do a walkthrough demo if setting up the environment is an issue.

Screenshots

This is how the integration with backend looks like on the FE.

annotations_integration

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

Mentions #211418 (closed)

Edited by 🤖 GitLab Bot 🤖

Merge request reports