GNS-Science / nshm-toshi-api

An extensible API where task metadata, and important input and output files relating to data-intensive science processes are retained. Custom task schemas can be defined to support their meta-data needs.
GNU Affero General Public License v3.0
0 stars 0 forks source link

Fix: Aggregate inversion solution returned by incorrect ID #194

Open benjamineac opened 1 year ago

benjamineac commented 1 year ago

Following query returns and AggregateInversionSolution (QWdncmVnYXRlSW52ZXJzaW9uU29sdXRpb246MTEzNTE4) from the ID for an InversionSolution (SW52ZXJzaW9uU29sdXRpb246MTEzNTE4);

query: `query AggregateInversionSolutionDetailTabQuery($id: ID!) {
        node(id: $id) {
          id
          __typename
          ... on AggregateInversionSolution {
            file_name
            file_size
            md5_digest
            created
            meta {
              k
              v
          }
          aggregation_fn
          common_rupture_set {
              ... on Node {
                __isNode: __typename
                id
            }
            id
        }
          produced_by {
              __typename
              ... on Node {
                __isNode: __typename
                id
                __typename
            }
        }
      }
    }
  }
    `,
  variables: {
    id: 'SW52ZXJzaW9uU29sdXRpb246MTEzNTE4',
  },