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: AggregateInversionSolution is not a possible type for "FileUnion" #174

Closed chrisbc closed 12 months ago

chrisbc commented 2 years ago

Runzi return new error:

gql.transport.exceptions.TransportQueryError: {'message': 'Runtime Object type "AggregateInversionSolution" is not a possible type for "FileUnion".', 'locations': [{'line': 7, 'column': 9}]}

with query and ID QXV0b21hdGlvblRhc2s6MTAzMDI2

fragment task_files on FileRelationConnection {
  total_count
  edges {
    node {
      ... on FileRelation {
        role
        file {
          ... on Node {
            id
          }
          ... on FileInterface {
            file_name
            file_size
            meta {k v}
          }
        }
      }
    }
  }
}

query ($id:ID!) {
    node(id: $id) {
    __typename
    ... on Node {
      id
    }
    ... on AutomationTask {
      files {
        ...task_files
      }
    }
    ... on RuptureGenerationTask {
      files {
        ...task_files
      }
    }
  }
}
chrisbc commented 2 years ago

@chrisdicaprio actually this was fixed already - it showed up in TEST. But the changes had not been deployed to PROD yet!