mountetna / magma

Data server with friendly data loaders
GNU General Public License v2.0
5 stars 2 forks source link

Don't allow creation of orphaned records #105

Open graft opened 4 years ago

graft commented 4 years ago

Data that is not linked to the rest of the data graph is "orphaned" - although it exists in a table it isn't "well-formed" since the entity relationships must be broken (that is, something doesn't have a parent). Presently Magma does not seem to refuse the creation of orphaned data.

A validation requiring a valid identifier for the parent attribute of each record would suffice to make sure Magma does not allow orphaned records.