Skip to content

chant_importer.py field names inconsistent with CantusDB CSV exports #953

@kyrieb-ekat

Description

@kyrieb-ekat

When importing chants via the admin interface or import_data chants, the
importer may fail or silently drop data for some manuscripts. The field names
expected by cantusdata/helpers/chant_importer.py do not consistently match
the column headers present in CantusDB's CSV exports
(https://cantusdatabase.org/sites/default/files/csv/{id}.csv).

Steps to reproduce:

  1. Follow the local setup instructions in the README
  2. Import a manuscript and attempt to import its chants via the admin interface
  3. Observe errors or incomplete chant data depending on the manuscript

Expected behaviour: All fields present in the CantusDB CSV are correctly
parsed and stored.

Notes: This likely requires comparing the current importer field mappings
against a sample of real CantusDB CSV exports to identify which columns are
missing or misnamed. The affected manuscripts and specific mismatched fields
should be documented as part of the fix.

Metadata

Metadata

Assignees

Labels

BugDevOpsDeployment, version control, operations, and development workflows

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions