Skip to content

Commit

Permalink
Merge branch 'main' into clean-up-resolvers-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rainandbare committed Apr 22, 2024
2 parents 604b75c + 3019343 commit 1c22385
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Changelog


## [2.30.2](https://github.com/chanzuckerberg/czid-graphql-federation-server/compare/v2.30.1...v2.30.2) (2024-04-19)


### Bug Fixes

* Update NextGen schema with new errorLabel field and pass it through SampleForReport ([#325](https://github.com/chanzuckerberg/czid-graphql-federation-server/issues/325)) ([ddfe8d5](https://github.com/chanzuckerberg/czid-graphql-federation-server/commit/ddfe8d5ff126f88a23afdc402f4c8516f61f54a6))
* Update schema ([#326](https://github.com/chanzuckerberg/czid-graphql-federation-server/issues/326)) ([a510e29](https://github.com/chanzuckerberg/czid-graphql-federation-server/commit/a510e29658ace8a98a2815ac55dc0f72ec7ffd3b))

## [2.30.1](https://github.com/chanzuckerberg/czid-graphql-federation-server/compare/v2.30.0...v2.30.1) (2024-04-12)


Expand Down
5 changes: 4 additions & 1 deletion example-queries/sample-for-report-query.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ query SampleViewSampleQuery($railsSampleId: String, $snapshotLinkId: String) {
deprecated
executed_at
id
input_error
input_error {
label
message
}
inputs {
accession_id
accession_name
Expand Down
10 changes: 9 additions & 1 deletion json-schemas/sampleForReportResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,15 @@
"type": "boolean"
},
"input_error": {
"type": "string"
"type": "object",
"properties": {
"label": {
"type": "string"
},
"message": {
"type": "string"
}
}
},
"inputs": {
"type": "object",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "czi-graphql-federation",
"version": "2.30.1",
"version": "2.30.2",
"description": "",
"scripts": {
"start": "mesh start",
Expand Down
5 changes: 4 additions & 1 deletion sample-responses/sampleForReport.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
"wdl_version": "3.4.18",
"executed_at": "2023-10-17T07:10:33.000-07:00",
"deprecated": false,
"input_error": "hi",
"input_error": {
"label": "InsufficientReadsError",
"message": "There were not enough reads."
},
"inputs": {
"accession_id": "11",
"accession_name": "11",
Expand Down
9 changes: 9 additions & 0 deletions sources/nextgen-entities-schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2091,6 +2091,15 @@ type Taxon implements EntityInterface & Node {
upstreamDatabase(where: UpstreamDatabaseWhereClause = null, orderBy: [UpstreamDatabaseOrderByClause!] = []): UpstreamDatabase
upstreamDatabaseIdentifier: String!
level: TaxonLevel!
taxParentId: ID
taxSpeciesId: ID
taxGenusId: ID
taxFamilyId: ID
taxOrderId: ID
taxClassId: ID
taxPhylumId: ID
taxKingdomId: ID
taxSuperkingdomId: ID
consensusGenomes(
where: ConsensusGenomeWhereClause = null
orderBy: [ConsensusGenomeOrderByClause!] = []
Expand Down
8 changes: 8 additions & 0 deletions sources/nextgen-workflows-schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ type WorkflowRun implements EntityInterface & Node {
outputsJson: String
workflowRunnerInputsJson: String
status: WorkflowRunStatus
errorLabel: String
errorMessage: String
workflowVersion(where: WorkflowVersionWhereClause = null, orderBy: [WorkflowVersionOrderByClause!] = []): WorkflowVersion
steps(
Expand Down Expand Up @@ -315,6 +316,7 @@ type WorkflowRun implements EntityInterface & Node {
): WorkflowRunEntityInputConnection!
entityInputsAggregate(where: WorkflowRunEntityInputWhereClause = null): WorkflowRunEntityInputAggregate
rawInputsJson: String
deprecatedById: ID
ownerUserId: Int!
collectionId: Int
createdAt: DateTime!
Expand Down Expand Up @@ -354,6 +356,7 @@ enum WorkflowRunCountColumns {
outputsJson
workflowRunnerInputsJson
status
errorLabel
errorMessage
workflowVersion
steps
Expand Down Expand Up @@ -513,6 +516,7 @@ type WorkflowRunGroupByOptions {
outputsJson: String
workflowRunnerInputsJson: String
status: WorkflowRunStatus
errorLabel: String
errorMessage: String
workflowVersion: WorkflowVersionGroupByOptions
rawInputsJson: String
Expand All @@ -532,6 +536,7 @@ type WorkflowRunMinMaxColumns {
executionId: String
outputsJson: String
workflowRunnerInputsJson: String
errorLabel: String
errorMessage: String
rawInputsJson: String
ownerUserId: Int
Expand All @@ -555,6 +560,7 @@ input WorkflowRunOrderByClause {
outputsJson: orderBy
workflowRunnerInputsJson: orderBy
status: orderBy
errorLabel: orderBy
errorMessage: orderBy
workflowVersion: WorkflowVersionOrderByClause
rawInputsJson: orderBy
Expand Down Expand Up @@ -748,6 +754,7 @@ input WorkflowRunUpdateInput {
outputsJson: String = null
workflowRunnerInputsJson: String = null
status: WorkflowRunStatus = null
errorLabel: String = null
errorMessage: String = null
deprecatedById: ID = null
deletedAt: DateTime = null
Expand All @@ -761,6 +768,7 @@ input WorkflowRunWhereClause {
outputsJson: StrComparators
workflowRunnerInputsJson: StrComparators
status: WorkflowRunStatusEnumComparators
errorLabel: StrComparators
errorMessage: StrComparators
workflowVersion: WorkflowVersionWhereClause
steps: WorkflowRunStepWhereClause
Expand Down
24 changes: 23 additions & 1 deletion tests/__snapshots__/UnifiedSchema.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2559,6 +2559,15 @@ type Taxon implements EntityInterface & Node {
where: SequencingReadWhereClause = null
): SequencingReadConnection!
sequencingReadsAggregate(where: SequencingReadWhereClause = null): SequencingReadAggregate
taxClassId: ID
taxFamilyId: ID
taxGenusId: ID
taxKingdomId: ID
taxOrderId: ID
taxParentId: ID
taxPhylumId: ID
taxSpeciesId: ID
taxSuperkingdomId: ID
updatedAt: DateTime
upstreamDatabase(orderBy: [UpstreamDatabaseOrderByClause!] = [], where: UpstreamDatabaseWhereClause = null): UpstreamDatabase
upstreamDatabaseIdentifier: String!
Expand Down Expand Up @@ -3105,6 +3114,7 @@ type WorkflowRun implements EntityInterface & Node {
createdAt: DateTime!
deletedAt: DateTime
deprecated: Boolean!
deprecatedById: ID
endedAt: DateTime
entityInputs(
"""Returns the items in the list that come after the specified cursor."""
Expand All @@ -3119,6 +3129,7 @@ type WorkflowRun implements EntityInterface & Node {
where: WorkflowRunEntityInputWhereClause = null
): WorkflowRunEntityInputConnection!
entityInputsAggregate(where: WorkflowRunEntityInputWhereClause = null): WorkflowRunEntityInputAggregate
errorLabel: String
errorMessage: String
executedAt: ISO8601DateTime
executionId: String
Expand Down Expand Up @@ -3186,6 +3197,7 @@ enum WorkflowRunCountColumns {
deprecatedBy
endedAt
entityInputs
errorLabel
errorMessage
executionId
id
Expand Down Expand Up @@ -3341,6 +3353,7 @@ type WorkflowRunGroupByOptions {
deletedAt: DateTime
deprecatedBy: WorkflowRunGroupByOptions
endedAt: DateTime
errorLabel: String
errorMessage: String
executionId: String
id: UUID
Expand All @@ -3360,6 +3373,7 @@ type WorkflowRunMinMaxColumns {
createdAt: DateTime
deletedAt: DateTime
endedAt: DateTime
errorLabel: String
errorMessage: String
executionId: String
outputsJson: String
Expand All @@ -3383,6 +3397,7 @@ input WorkflowRunOrderByClause {
deletedAt: orderBy
deprecatedBy: orderBy
endedAt: orderBy
errorLabel: orderBy
errorMessage: orderBy
executionId: orderBy
id: orderBy
Expand Down Expand Up @@ -3574,6 +3589,7 @@ input WorkflowRunUpdateInput {
deletedAt: DateTime = null
deprecatedById: ID = null
endedAt: DateTime = null
errorLabel: String = null
errorMessage: String = null
executionId: String = null
outputsJson: String = null
Expand All @@ -3588,6 +3604,7 @@ input WorkflowRunWhereClause {
deprecatedById: UUIDComparators
endedAt: DatetimeComparators
entityInputs: WorkflowRunEntityInputWhereClause
errorLabel: StrComparators
errorMessage: StrComparators
executionId: StrComparators
id: UUIDComparators
Expand Down Expand Up @@ -4707,7 +4724,7 @@ type query_SampleForReport_workflow_runs_items {
deprecated: Boolean
executed_at: String!
id: String!
input_error: String
input_error: query_SampleForReport_workflow_runs_items_input_error
inputs: query_SampleForReport_workflow_runs_items_inputs!
rails_workflow_run_id: String
run_finalized: Boolean!
Expand All @@ -4716,6 +4733,11 @@ type query_SampleForReport_workflow_runs_items {
workflow: String
}
type query_SampleForReport_workflow_runs_items_input_error {
label: String
message: String
}
type query_SampleForReport_workflow_runs_items_inputs {
accession_id: String
accession_name: String
Expand Down

0 comments on commit 1c22385

Please sign in to comment.