-
Notifications
You must be signed in to change notification settings - Fork 1
allows to list existing and upload new datasets #4
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
Conversation
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 👍
Uh oh!
There was an error while loading. Please reload this page.