Skip to content

Commit 40dc743

Browse files
authored
Merge pull request #4 from Ferlab-Ste-Justine/fix/cqdg-947_mapping_update
fix: CQDG-947 update mapping
2 parents e4c1509 + 924aae9 commit 40dc743

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

Diff for: src/graphql/biospecimen/extendedMapping.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const extendedMapping = [
5858
field: 'files.biospecimen_reference',
5959
displayName: 'Files Biospecimen Reference',
6060
active: false,
61-
isArray: false,
61+
isArray: true,
6262
rangeStep: 1,
6363
type: 'keyword',
6464
gqlId: 'cqdg::Biospecimen::extended::files.biospecimen_reference',

Diff for: src/graphql/file/extendedMapping.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const extendedMapping = [
66
field: 'biospecimen_reference',
77
displayName: 'Biospecimen Reference',
88
active: false,
9-
isArray: false,
9+
isArray: true,
1010
rangeStep: 1,
1111
type: 'keyword',
1212
gqlId: 'cqdg::File::extended::biospecimen_reference',

Diff for: src/graphql/file/types/file.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const FileType = new GraphQLObjectType({
2525
id: { type: GraphQLString },
2626
file_id: { type: GraphQLString },
2727
file_2_id: { type: GraphQLString },
28-
biospecimen_reference: { type: GraphQLString },
28+
biospecimen_reference: { type: new GraphQLList(GraphQLString) },
2929
data_category: { type: GraphQLString },
3030
data_type: { type: GraphQLString },
3131
dataset: { type: GraphQLString },

Diff for: src/graphql/file/types/sequencingExperiment.ts

+10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import { GraphQLObjectType, GraphQLString } from 'graphql';
2+
import { GraphQLList } from "graphql/index";
23

34
const SequencingExperimentType = new GraphQLObjectType({
45
name: 'SequencingExperimentType',
56
fields: () => ({
67
alir: { type: GraphQLString },
8+
analysis_files: { type: new GraphQLList(AnalysisFilesType) },
79
analysis_id: { type: GraphQLString },
810
bio_informatic_analysis: { type: GraphQLString },
911
capture_kit: { type: GraphQLString },
@@ -28,4 +30,12 @@ const SequencingExperimentType = new GraphQLObjectType({
2830
}),
2931
});
3032

33+
const AnalysisFilesType = new GraphQLObjectType({
34+
name: 'AnalysisFilesType',
35+
fields: () => ({
36+
data_type: { type: GraphQLString },
37+
file_id: { type: GraphQLString },
38+
}),
39+
});
40+
3141
export default SequencingExperimentType;

Diff for: src/graphql/participant/extendedMapping.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ const extendedMapping: I_ExtendedMappingSetFieldInput[] = [
463463
field: 'files.biospecimen_reference',
464464
displayName: 'Files Biospecimen Reference',
465465
active: false,
466-
isArray: false,
466+
isArray: true,
467467
rangeStep: 1,
468468
type: 'keyword',
469469
gqlId: 'cqdg::Participant::extended::files.biospecimen_reference',

0 commit comments

Comments
 (0)