obiba / mica2

Mica is a web portal for epidemiological study consortia.
http://www.obiba.org/pages/products/mica/
GNU General Public License v3.0
10 stars 15 forks source link

int64 in DTOs are received as Strings in the client #4451

Closed kazoompa closed 2 months ago

kazoompa commented 2 months ago

This issue is unique

Version information

5.5-SNAPSHOT

Expected behavior

In Mica Java21, int64 fields in response DTOs are converted to string causing formatting errors. For example:

92524 is missing a comma since the reponse is not numerical but a string: '92524' as such toLocaleString() does not return a correct fomat

Actual behavior

No response

Reproduction steps

Naviate to https://mica-staging.maelstrom-research.org/network/ialsa and look at the Individual Studies section. Variable counts greater than 999 do not have a comma.

Try double and make sure the clients do not have issues with that.

Operating System (OS)

No response

Browser

No response

Contact info

No response

kazoompa commented 2 months ago

Converted int64 to double so the JS receive counts as numbers.