-
Notifications
You must be signed in to change notification settings - Fork 1
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
allows to list existing and upload new datasets #4
Conversation
wow-such-code
commented
Jun 27, 2024
•
edited
Loading
edited
- uses openbis wrapper for connections
- allows to store as, dss and user in a config file to connect (password still needs to be provided as before)
- allows users to list datasets attached to an experiment
- allows users to upload data, creating a new datasets attached to an experiment. can also reference existing (parent) datasets
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.
Dear @wow-such-code ! Awesome work, however i found some inconsistencies and minor issues which should be addressed beforehand
src/main/java/life/qbic/App.java
Outdated
*/ | ||
public static OpenBIS loginToOpenBIS( | ||
char[] password, String user, String url, String dssUrl) { | ||
//setupLog(); |
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.
//setupLog(); | |
//setupLog(); |
Why is this commented out? Is this not necessary anymore 🤔
pom.xml
Outdated
<configuration> | ||
<source>11</source> | ||
<target>11</target> | ||
</configuration> |
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.
I think this relates to the java version? I'd recommend to define a java property then and employ it here
src/main/java/life/qbic/io/commandline/AuthenticationOptions.java
Outdated
Show resolved
Hide resolved
src/main/java/life/qbic/io/commandline/AuthenticationOptions.java
Outdated
Show resolved
Hide resolved
src/main/java/life/qbic/io/commandline/AuthenticationOptions.java
Outdated
Show resolved
Hide resolved
creation.setExperimentId(new ExperimentIdentifier(experimentID)); | ||
creation.setParentIds(parentCodes.stream().map(DataSetPermId::new).collect( | ||
Collectors.toList())); | ||
creation.setTypeId(new EntityTypePermId("UNKNOWN", EntityKind.DATA_SET)); |
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.
NIT: Do you think i'd make sense to specify these values as final static variables with a descriptive name? For me it's unclear what the purpose of UNKOWN is in this context 🤔
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.
good point, at this point it's a proof of concept and "UNKNOWN" is the dataset type we can be sure of existing in the system
public void downloadDataset(String targetPath, String datasetID) throws IOException { | ||
DataSetFileDownloadOptions options = new DataSetFileDownloadOptions(); | ||
IDataSetFileId fileToDownload = new DataSetFilePermId(new DataSetPermId(datasetID), | ||
"");//TODO test this path |
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.
What's ths status of this TODO?
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.
solved
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.
Well done 👍