Skip to content

Commit

Permalink
fix: when selecting 100 in table explorer query times out because of …
Browse files Browse the repository at this point in the history
…large ontology query expansion. closes #2935 (#2937)
  • Loading branch information
mswertz authored Nov 9, 2023
1 parent 3692c7b commit 9874fef
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apps/molgenis-components/src/client/queryBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ export const columnNames = (
["REF_ARRAY", "REFBACK", "ONTOLOGY_ARRAY"].includes(col.columnType)
) {
//skip
} else if (
["REF", "ONTOLOGY", "REF_ARRAY", "REFBACK", "ONTOLOGY_ARRAY"].includes(
col.columnType
)
) {
} else if (["REF", "REF_ARRAY", "REFBACK"].includes(col.columnType)) {
result =
result +
" " +
Expand All @@ -48,6 +44,8 @@ export const columnNames = (
false
) +
" }";
} else if (["ONTOLOGY", "ONTOLOGY_ARRAY"].includes(col.columnType)) {
result = result + " " + col.id + " {name, label}";
} else if (col.columnType === "FILE") {
result += ` ${col.id} { id, size, extension, url }`;
} else if (col.columnType !== "HEADING") {
Expand Down

0 comments on commit 9874fef

Please sign in to comment.