Changeset View
Changeset View
Standalone View
Standalone View
js_modules/dagit/src/partitions/useChunkedPartitionsQuery.tsx
Show First 20 Lines • Show All 247 Lines • ▼ Show 20 Lines | results.push({ | ||||
), | ), | ||||
}); | }); | ||||
} | } | ||||
return results; | return results; | ||||
} | } | ||||
export const PARTITION_SET_LOADER_RUN_FRAGMENT = gql` | export const PARTITION_SET_LOADER_RUN_FRAGMENT = gql` | ||||
fragment PartitionSetLoaderRunFragment on PipelineRun { | fragment PartitionSetLoaderRunFragment on PipelineRun { | ||||
id | |||||
...PartitionGraphSetRunFragment | ...PartitionGraphSetRunFragment | ||||
...PartitionRunMatrixRunFragment | ...PartitionRunMatrixRunFragment | ||||
} | } | ||||
${PARTITION_RUN_MATRIX_RUN_FRAGMENT} | ${PARTITION_RUN_MATRIX_RUN_FRAGMENT} | ||||
${PARTITION_GRAPH_SET_RUN_FRAGMENT} | ${PARTITION_GRAPH_SET_RUN_FRAGMENT} | ||||
`; | `; | ||||
const PARTITION_SET_LOADER_QUERY = gql` | const PARTITION_SET_LOADER_QUERY = gql` | ||||
query PartitionSetLoaderQuery($filter: PipelineRunsFilter!, $cursor: String, $limit: Int) { | query PartitionSetLoaderQuery($filter: PipelineRunsFilter!, $cursor: String, $limit: Int) { | ||||
pipelineRunsOrError(filter: $filter, cursor: $cursor, limit: $limit) { | pipelineRunsOrError(filter: $filter, cursor: $cursor, limit: $limit) { | ||||
... on PipelineRuns { | ... on PipelineRuns { | ||||
results { | results { | ||||
id | |||||
...PartitionSetLoaderRunFragment | ...PartitionSetLoaderRunFragment | ||||
} | } | ||||
} | } | ||||
... on InvalidPipelineRunsFilterError { | ... on InvalidPipelineRunsFilterError { | ||||
message | message | ||||
} | } | ||||
... on PythonError { | ... on PythonError { | ||||
...PythonErrorFragment | ...PythonErrorFragment | ||||
Show All 32 Lines |