Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Columns of type Ontology and Ontology_Array handle quotes differently #4567

Open
1 task done
hslh opened this issue Dec 16, 2024 · 0 comments
Open
1 task done

Columns of type Ontology and Ontology_Array handle quotes differently #4567

hslh opened this issue Dec 16, 2024 · 0 comments
Labels
app:catalogue bug Something isn't working

Comments

@hslh
Copy link
Contributor

hslh commented Dec 16, 2024

Have you checked if this issue already exists?

  • yes

Molgenis EMX2 version

v11.40.2, v23

Description

Uploading data to the catalogue with values in triple double quotes, e.g. """Adult (18+ years)""" is fine for columns of type Ontology_Array, but fails for type Ontology, with error:

Import failed: Upsert into table 'Subpopulation counts' failed: Transaction failed: insert or update on table "Subpopulation counts" violates foreign key constraint "Subpopulation counts.age group REFERENCES Age groups". Details: Key (age group)=("Adult (18+ years)") is not present in table "Age groups".

Reproduction steps

  1. Go to 'https://emx2.dev.molgenis.org/'
  2. Create a schema with template 'DATA_CATALOGUE' with example data
  3. Upload Subpopulations.csv (attached) to that schema, see that it imports successfully even though it contains the value """Adult (18+ years)""" for column 'age group' of type Ontology_Array
    Subpopulations.csv
  4. Upload Subpopulation counts.csv (attached) to the same schema, see that the import fails on the value """Adult (18+ years)""" for column 'age group' of type Ontology
    Subpopulation counts.csv

Expected behaviour

I expect the upload to succeed in both cases, or at least behave in the same way in both cases.

System configuration

MacOS Sequoia, Firefox v133

@hslh hslh added bug Something isn't working app:catalogue labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:catalogue bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant