Model Experiments: Add Experiments to GraphQL

Experiments is not available in GraphQL to query directly. This has caused sub optimal work arounds before but is now more important as certain components would have to be duplicated in order to make them work with the new designs.

We would want list and get Experiments via GraphQL so we can change to GraphQL in:

  • app/views/projects/ml/experiments/show.html.haml
  • app/views/projects/ml/experiments/index.html.haml

With the underlying Vue components.

The following types will need to be added:

  • app/graphql/types/ml/experiment_type.rb

Queries to be added:

  • app/assets/javascripts/ml/experiment_tracking/graphql/queries/get_experiments.query.graphql
  • app/assets/javascripts/ml/experiment_tracking/graphql/queries/get_experiment.query.graphql

Experiment will also need to be added as a query type.

Edited by Fred de Gier