loculus-project / loculus

An open-source software package to power microbial genomic databases
https://loculus.org
GNU Affero General Public License v3.0
37 stars 2 forks source link

Inconsistent browse page: number of sequences wrong #3162

Open chaoran-chen opened 3 weeks ago

chaoran-chen commented 3 weeks ago

I just uploaded a few sequences and then navigated to the Browse page and saw that the text "Search returned 0 sequences" although there was a list of sequences:

image

I assume that the reason is that SILO updated exactly between the request to the aggregated endpoint for the total number of sequences and the request to the details endpoint for getting the table. This can be avoided by checking the dataVersion (which each LAPIS response returns, see docs) and refreshing the page if we see that they are not the same.