-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: enable refback column data to be included in csv/excel downloads (will be ignored during import) #4705
base: master
Are you sure you want to change the base?
Conversation
I think showing a warning/notice on import saying refback columns are ignored should be sufficient. If it's still a problem, adding an option/checkbox/something saying 'include refback columns' on the download screen might be a solution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, download/upload for directory-demo works. For catalogue-demo it also works, except that I get a zip-file of 0 bytes when downloading everything as csv.zip: https://preview-emx2-pr-4705.dev.molgenis.org/catalogue-demo/api/zip
that is new? then we found a bug we need to first fix |
Ah, this is a missing feature having to do with selection of refback columns in combination with composite keys. Not so simple ;-) |
backend/molgenis-emx2-rdf/src/main/java/org/molgenis/emx2/rdf/ColumnTypeRdfMapper.java
Show resolved
Hide resolved
backend/molgenis-emx2-rdf/src/test/java/org/molgenis/emx2/rdf/ColumnTypeRdfMapperTest.java
Outdated
Show resolved
Hide resolved
backend/molgenis-emx2-rdf/src/test/java/org/molgenis/emx2/rdf/ColumnTypeRdfMapperTest.java
Show resolved
Hide resolved
backend/molgenis-emx2-sql/src/main/java/org/molgenis/emx2/sql/SqlQuery.java
Outdated
Show resolved
Hide resolved
backend/molgenis-emx2-sql/src/main/java/org/molgenis/emx2/sql/SqlQuery.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this used? For tests? then it should be moved to the resource folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, this shouldn't be in the PR, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue w.r.t. downloading the csv.zip for catalogue-demo persists: https://preview-emx2-pr-4705.dev.molgenis.org/catalogue-demo/api/zip gets a 0-byte invalid file.
Getting all data as Excel gives an error https://preview-emx2-pr-4705.dev.molgenis.org/catalogue-demo/api/zip -> "Query failed: : column a0.internal identifiers.resource does not exist. "
|
ah, though I fixed this one. |
closes #4223
What are the main changes you did
How to test
Checklist