-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adopt downloadconfig API v2 #85
base: master
Are you sure you want to change the base?
Conversation
…ing of the country code in AppSettings
170c7f7
to
d8823ab
Compare
Thank you for this. However, it seems there's no Doesn't serve a file for me: https://svc90.main.px.t-online.de/version/v1/configuration/country/EUR/app_config |
Yeah, I wasn't sure about that (see my other comment at the commit related to this). I then digged in the Android code once again with my zero Kotlin knowledge and couldn't see that this URL shouldn't be affected by EUR. I'll convert to draft and close if I can't find anything supporting my intention in the official code. |
Ok, I now digged more into the Android code and was suprised that the URL above is never used! I then looked for it at the server code and immedately found this test: Is |
Ok, I looked into the S3 code of the server and it seems like this API called here is just somehow unused or deprecated, the iOS and Android specific paths don't cotain country codes, so they maybe just forgot it. |
Ok, I looked at https://github.com/corona-warn-app/cwa-server/blob/ea3bf192aa27f686427aaf70a49f741214b60a66/services/distribution/api_v1.json There is https://svc90.main.px.t-online.de/version/v1/configuration/app_config |
I got a bit more information. Yes, I'll try to get more information on why |
Thanks for looking in to this and also for flagging up this difference between the v1 and v2 APIs. Yes, it looks like we should be transitioning to the v2 API. There are similarities between the two, but the main differences seem to relate to the risk calculation parameters. Unfortunately the documentation still references the values from the v1 file, so it's not clear to me how the calculation needs to be updated to make use of the values in the v2 files at the moment. The parameters provided are very different, and their names don't offer enough hints, to me at least. For reference, the proto files needed for decoding both the v1 |
Fix key for downloadconfig URL: make it dynamic dependent on the setting of the country code in AppSettings