frontend
frontend copied to clipboard
Scientific metadata quantity saved as string
Summary
When editing or adding a new scientific metadata quantity in the frontend, the backend save the quantity as string. This invalidate queries on the quantity as user expect that is a number not as a string
Steps to Reproduce
- Login with an account that has permission to add the selected dataset
- View selected dataset
- Edit Scientific metadata
- Scroll to the bottom and click "Add row"
- Enter a quantity with a unit
-
- Save the changes
- Use explorer to retrieve the same dataset
Current Behaviour
Currently the new metadata quantity is save as string. In the last image, metadata "quantity_as_string_issue" has value equal to "1"
Expected Behaviour
I would expect that a scientific metadata quantity with unit is save with value as number, so query with greater and less than or equal to can be performed
Extra Details
I'm running firefox 103.0.2 (64-bit) on linux mint