Skip to content

How to store a small list in scientificMetadata? #1899

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

Closed
jkotan opened this issue May 12, 2025 · 1 comment
Closed

How to store a small list in scientificMetadata? #1899

jkotan opened this issue May 12, 2025 · 1 comment

Comments

@jkotan
Copy link
Contributor

jkotan commented May 12, 2025

Currently we are testing scicat backend 4.16.0 . Unfortunately, in this version possibility of storing a small list like [1, 0 , 0] was removed. Instead I get the following errors

More than two values provided in the quantity_range field {"inputValue":[1,0,0]}

Is there any possibility to store small lists?
Of course it is only possible way I can dump it to {"1":{"value":1}, "2":{"value":0}, "3":{"value":0} } but it will use more storage space in DB.
It looks like #924 was not resolved .

@jkotan jkotan changed the title How to store small list in scientificMetadata? How to store a small list in scientificMetadata? May 12, 2025
@jkotan jkotan closed this as completed May 14, 2025
@jkotan
Copy link
Contributor Author

jkotan commented May 14, 2025

The dataset in DB is OK but the error message is misleading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant