F fix strict values in table columns
4 unresolved threads
4 unresolved threads
Compare changes
Files
3@@ -322,7 +322,7 @@ class TableImporter():
@@ -338,9 +338,11 @@ class TableImporter():
For https://gitlab.indiscale.com/caosdb/customers/geomar/management/-/issues/152. The TableImporter.check_datatype
function is now less strict (by default) with numeric values in columns that are expected to have string values.
There had been already a strict
option but it was only used for float columns containing integer values. This was extended.
No manual testing is needed, unit tests should be sufficient.
If you still want to test it manually, run the Geomar server-profile with this branch and use, e.g., an integer in the "Storage ID" column of the sample upload.
Please, prepare your MR for a review. Be sure to write a summary and a focus and create gitlab comments for the reviewer. They should guide the reviewer through the changes, explain your changes and also point out open questions. For further good practices have a look at our review guidelines
For further good practices have a look at our review guidelines.
That's all. The
strict
option had been there already and the problem with ints and floats in the original issue was in fact the other way round (float value where int was expected), so irrelevant here.Changed the code a bit. Looks ok?