4dn-dcic / fourfront

Data portal for submitting and viewing genomic data
https://data.4dnucleome.org
MIT License
13 stars 2 forks source link

Cypress tests fail due to change in search result's total count #1777

Closed utku-ozturk closed 1 year ago

utku-ozturk commented 1 year ago

GA Cypress runs started to timeout after the ES7 migration. A new "feature" in ES7 restricts the result's total count to 10000 instead of its exact count. Because of this change, 1. Cypress tests that depend on the result's total count fail, 2. end-users get a total count that looks less precise.

One workaround would be displaying "10.000+ results ", instead of "10.000 results", whereas another is getting the exact count from facet terms where type=Item's doc_count is available. In this PR, we preferred the latter approach that only requires changes in search.py, since the former affects numerous FF/SPC components and Cypress tests.

Notes: