ELVIS-Project / simssadb

New version of the ELVIS database. A database of files containing searchable symbolic representations of scores. See staging at db.staging.simmsa.ca.
https://db.simssa.ca
GNU General Public License v3.0
5 stars 4 forks source link

At least one database relationship is missing #426

Closed rebmizrahi closed 10 months ago

rebmizrahi commented 10 months ago

In the MusicalWork model, there is an attribute: sections : models.fields.related_descriptors.ReverseManyToOneDescriptor References to Sections that are part of this MusicalWork However, I tested this with the upload form; if a user selects a MusicalWork work and I print work.sections, I get: database.Section.None. If I print from the other side of the relationship, Section.objects.filter(work=work), it prints a list of sections. When the sample data is added, not all relationships are established properly.

  1. Test other attributes
  2. Update data adder to account for incomplete/one-sided relationships
    • A data adder that takes in any folder of works and metadata is issue #414, this issue is just to make sure the new adder does not have the same mistakes as the original one.
rebmizrahi commented 10 months ago

False alarm