Skip to content

Commit

Permalink
Merge pull request #963 from opencb/TASK-6783
Browse files Browse the repository at this point in the history
TASK-6783 - IVA TypeError in cohort create when searching for SampleIDs
  • Loading branch information
gpveronica authored Sep 2, 2024
2 parents 03ad9d9 + 44ef7ce commit f769edd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/core/clients/opencga/api/ClinicalAnalysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export default class ClinicalAnalysis extends OpenCGAParentClass {
* @param {String} [params.dueDate] - Clinical Analysis due date. Format: yyyyMMddHHmmss. Examples: >2018, 2017-2018, <201805.
* @param {String} [params.qualityControlSummary] - Clinical Analysis quality control summary.
* @param {String} [params.release] - Release when it was created.
* @param {Number} [params.snapshot] - Snapshot value (Latest version of the entry in the specified release).
* @param {String} [params.status] - Filter by status.
* @param {String} [params.internalStatus] - Filter by internal status.
* @param {String} [params.annotation] - Annotation filters. Example: age>30;gender=FEMALE. For more information, please visit
Expand All @@ -136,6 +137,7 @@ export default class ClinicalAnalysis extends OpenCGAParentClass {
* @param {String} [params.id] - Comma separated list of Interpretation IDs up to a maximum of 100. Also admits basic regular expressions
* using the operator '~', i.e. '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for case insensitive search.
* @param {String} [params.uuid] - Comma separated list of Interpretation UUIDs up to a maximum of 100.
* @param {String} [params.name] - Comma separated list of Interpretation names up to a maximum of 100.
* @param {String} [params.clinicalAnalysisId] - Clinical Analysis id.
* @param {String} [params.analystId] - Analyst ID.
* @param {String} [params.methodName] - Interpretation method name. Also admits basic regular expressions using the operator '~', i.e.
Expand Down Expand Up @@ -166,6 +168,7 @@ export default class ClinicalAnalysis extends OpenCGAParentClass {
* @param {String} [params.id] - Comma separated list of Interpretation IDs up to a maximum of 100. Also admits basic regular expressions
* using the operator '~', i.e. '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for case insensitive search.
* @param {String} [params.uuid] - Comma separated list of Interpretation UUIDs up to a maximum of 100.
* @param {String} [params.name] - Comma separated list of Interpretation names up to a maximum of 100.
* @param {String} [params.clinicalAnalysisId] - Clinical Analysis id.
* @param {String} [params.analystId] - Analyst ID.
* @param {String} [params.methodName] - Interpretation method name. Also admits basic regular expressions using the operator '~', i.e.
Expand Down Expand Up @@ -607,6 +610,7 @@ export default class ClinicalAnalysis extends OpenCGAParentClass {
* @param {String} [params.dueDate] - Clinical Analysis due date. Format: yyyyMMddHHmmss. Examples: >2018, 2017-2018, <201805.
* @param {String} [params.qualityControlSummary] - Clinical Analysis quality control summary.
* @param {String} [params.release] - Release when it was created.
* @param {Number} [params.snapshot] - Snapshot value (Latest version of the entry in the specified release).
* @param {String} [params.status] - Filter by status.
* @param {String} [params.internalStatus] - Filter by internal status.
* @param {String} [params.annotation] - Annotation filters. Example: age>30;gender=FEMALE. For more information, please visit
Expand Down Expand Up @@ -803,6 +807,8 @@ export default class ClinicalAnalysis extends OpenCGAParentClass {
* @param {String} [params.exclude] - Fields excluded in the response, whole JSON path must be provided.
* @param {Boolean} [params.flattenAnnotations = "false"] - Flatten the annotations?. The default value is false.
* @param {String} [params.study] - Study [[organization@]project:]study where study and project can be either the ID or UUID.
* @param {String} [params.version] - Comma separated list of clinical versions. 'all' to get all the clinical versions. Not supported if
* multiple clinical ids are provided.
* @param {Boolean} [params.deleted = "false"] - Boolean to retrieve deleted entries. The default value is false.
* @returns {Promise} Promise object in the form of RestResponse instance.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,11 @@ export default class CatalogSearchAutocomplete extends LitElement {
"SAMPLE": {
searchField: "id",
placeholder: "HG01879, HG01880, HG01881...",
client: this.opencgaSession.opencgaClient.samples(),
// client: this.opencgaSession.opencgaClient.samples(),
fetch: filters => this.opencgaSession.opencgaClient.samples().search(filters),
fields: item => ({
"name": item.id,
"Individual ID": item?.individualId
"Individual ID": item?.individualId,
}),
query: {
include: "id,individualId"
Expand Down

0 comments on commit f769edd

Please sign in to comment.