Skip to content

Data model interface shows incorrect changes

The output of the data model interface shows many changes that are incorrect (i.e. there is no actual change needed) for the following reasons:

  • Properties that are part of a Record and declared on top level of the yaml file don't receive datatype, description and unit in the Record definition that is generated and compared with the server response. Therefore, the compare_entities function incorrectly reports differences.
  • RecordTypes as datatypes of properties are shown as IDs in the XML output as the result from the yaml file while the server response shows the name of the RecordType as the datatype. Therefore, the compare_entities function incorrectly reports differences. There is a patch already created by @henrik in https://gitlab.indiscale.com/caosdb/src/caosdb-pylib/-/tree/f-compare?ref_type=heads that fixes this problem by implementing this case in the compare_entities function.
Edited by Alexander Schlemmer