Skip to content

Commit

Permalink
Fix for Main Search
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfisher72 committed Jul 10, 2024
1 parent 15aafd1 commit 49faad3
Show file tree
Hide file tree
Showing 3 changed files with 8,612 additions and 5,870 deletions.
3 changes: 2 additions & 1 deletion screen2.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@
"not dead",
"not ie <= 11",
"not op_mini all"
]
],
"packageManager": "yarn@3.5.0+sha512.2dc70be5fce9f66756d25b00a888f3ca66f86b502b76750e72ba54cec89da767b938c54124595e26f868825688e0fe3552c26c76a330673343057acadd5cfcf2"
}
14 changes: 4 additions & 10 deletions screen2.0/src/common/lib/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ const cCRE_QUERY = gql`
$accessions: [String!]
$assembly: String!
$cellType: String
$coord_chrom: String
$coord_end: Int
$coord_start: Int
$coordinates: [GenomicRangeInput]
$element_type: String
$gene_all_start: Int
$gene_all_end: Int
Expand Down Expand Up @@ -45,9 +43,7 @@ const cCRE_QUERY = gql`
assembly: $assembly
accessions: $accessions
cellType: $cellType
coord_chrom: $coord_chrom
coord_end: $coord_end
coord_start: $coord_start
coordinates: $coordinates
element_type: $element_type
gene_all_start: $gene_all_start
gene_all_end: $gene_all_end
Expand Down Expand Up @@ -128,9 +124,7 @@ function cCRE_QUERY_VARIABLES(assembly: string, chromosome: string, start: numbe
let vars = {
uuid: null,
assembly: assembly,
coord_chrom: chromosome,
coord_start: start,
coord_end: end,
coordinates: [{chromosome, start, end}],
gene_all_start: 0,
gene_all_end: 5000000,
gene_pc_start: 0,
Expand Down Expand Up @@ -265,7 +259,7 @@ export async function MainQuery(assembly: string = null, chromosome: string = nu
try {
data = await getClient().query({
query: cCRE_QUERY,
variables: cCRE_QUERY_VARIABLES(assembly, chromosome, start, end, biosample, nearbygenesdistancethreshold, nearbygeneslimit, accessions),
variables: cCRE_QUERY_VARIABLES(assembly, chromosome, start, end, biosample, nearbygenesdistancethreshold, nearbygeneslimit, accessions, noLimit),
//Telling it to not cache, next js caches also and for things that exceed the 2mb cache limit it slows down substantially for some reason
fetchPolicy: "no-cache",
})
Expand Down
Loading

0 comments on commit 49faad3

Please sign in to comment.