frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Scientific metadata quantity saved as string

Open nitrosx opened this issue 2 years ago • 0 comments

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 image
  • Edit Scientific metadata image
  • Scroll to the bottom and click "Add row" image
  • Enter a quantity with a unit image-
  • Save the changes
  • Use explorer to retrieve the same dataset image

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

nitrosx avatar Aug 19 '22 14:08 nitrosx