genomic-medicine-sweden / docker-sc2reporter

Dockerized version of the sc2reporter program.
GNU General Public License v2.0
0 stars 1 forks source link

Add filters on dashboard pangolin graph #69

Closed elevu closed 1 year ago

elevu commented 1 year ago

Blocked by https://github.com/genomic-medicine-sweden/docker-sc2reporter/issues/68

moedarrah commented 1 year ago

https://34.125.210.143/docs#/Dashboard/get_dashboard_data_dashboard__get

moedarrah commented 1 year ago

create the filter checkboxes dynamically from the response

Screenshot 2022-11-15 at 11 23 09
moedarrah commented 1 year ago

Blocked by: https://github.com/genomic-medicine-sweden/docker-sc2reporter/issues/86

Fattigman commented 1 year ago

Seems that fastapi encodes its requests in a weird way: Screenshot 2022-11-29 at 14 37 47

Fattigman commented 1 year ago

So the problem is that there are three different encodings:

  1. Övrigt : UTF-8, what we can read and so forth
  2. Övrigt : HTML entity encoding, as Ö is a special character it's encoded as it is. It's the same for the other umlauts.
  3. %26Ouml%3Bvrigt : URL encoding, as the character "&" and ";" have specific functions when passed through the url they will need to also be encoded.

This could have been avoided if we would have english language in our database and thus an issue has been created for it #134 , but until then these API calls will need to pass a url parser.

moedarrah commented 1 year ago

Done: https://github.com/genomic-medicine-sweden/docker-sc2reporter/pull/137