Skip to content

Add data transfer graphql queries under feature flag

Gavin Hinfey requested to merge 387026_expose_transfered_data_per_project into master

What does this MR do and why?

Adds Active Record queries to Graphql resolvers for GroupDataTransfer and ProjectDataTransfer endpoints.
Adds feature flag data_transfer_monitoring_mock_data which allows user to ignore queries and use mock data.

Allows testing of query performance.

Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/387026.

Screenshots or screen recordings

Screenshot_2023-03-02_at_13.38.27

How to set up and validate locally

  1. Use this snippet to generate table data for the project_data_transfers table.
  2. Ensure the feature flag data_transfer_monitoring_mock_data is switched off.
  3. Use GraphiQL to run queries locally on your GDK. Queries are the same as those described in the description of !110211 (merged)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Gavin Hinfey

Merge request reports

Loading