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

data (rd3): fix import and data model issues #4568

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Conversation

davidruvolo51
Copy link
Contributor

@davidruvolo51 davidruvolo51 commented Dec 17, 2024

(This list is evolving)

What are the main changes you did:

The purpose of this PR is to resolve all importing issues and data model changes to the RD3_v2 model

  • Fixed Organisations: changed all instances to ref/ref_array; added generic resource to resolve import errors
  • Resolved consent document type import failure
  • rename assigned gender at birth csv

How to test

  • explain here what to do to test this (or point to unit tests)

Checklist

  • updated docs in case of new feature
  • added/updated tests
  • added/updated testplan to include a test for this fix, including ref to bug using # notation

@davidruvolo51
Copy link
Contributor Author

This PR addresses the issues listed in molgenis/projects-solve-rd#60

@davidruvolo51 davidruvolo51 changed the title fix: minor revisions to ontologies to fix import errors data (rd3): fix import and data model issues Dec 17, 2024
@@ -32,6 +33,7 @@ public void run() {
}
List<Row> rows = getProfilesFromAllModels("/portal", List.of());
getSchema().migrate(Emx2.fromRowList(rows));
MolgenisIO.fromClasspathDirectory("/_ontologies", getSchema(), false);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this is the correct approach for the profiles and other data models. I used the other loaders as a guide.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is.

@@ -32,6 +33,7 @@ public void run() {
}
List<Row> rows = getProfilesFromAllModels("/portal", List.of());
getSchema().migrate(Emx2.fromRowList(rows));
MolgenisIO.fromClasspathDirectory("/_ontologies", getSchema(), false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is.

@willemijn-oudijk willemijn-oudijk marked this pull request as ready for review December 20, 2024 14:42
@willemijn-oudijk willemijn-oudijk merged commit e68dcb8 into master Dec 20, 2024
7 checks passed
@willemijn-oudijk willemijn-oudijk deleted the fix/rd3-v2 branch December 20, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants