Broken error message when updating a record with a property without id
E.g., on the demo instance, doing
ana_rt = db.RecordType(name="MusicalAnalysis").retrieve()
test_ana = db.Record(name="TestAnalysis").add_parent(ana_rt)
test_ana.insert()
test_ana.add_property(name="quality_factor", value=0.7)
test_ana.add_property(id=101, value=0.7)
test_ana.update()
results in
TransactionError: TransactionError: One or more entities are not qualified. None of them have been inserted/updated/deleted.
+--| REASONS |--
| -> RECORD (id: 357, name: 'TestAnalysis') CAUSED |UnqualifiedPropertiesError: Entity has unqualified properties.
| +--| REASONS |--
| | -> PROPERTY (id: 101, name: 'quality_factor') CAUSED | |EntityError: Entity has no ID.
| | -> PROPERTY (id: 101) CAUSED | |EntityError: Entity has no name.
| +----------------
+----------------
While the error is caused by the update with a property without an id -- which is a problem of its own, see #51 (moved) , -- the error message is clearly confusing: in the message, the first entity has an id and the missing name of the second one is no problem and doesn't cause the error.