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

allows to list existing and upload new datasets #4

Merged
merged 5 commits into from
Jun 28, 2024

Conversation

wow-such-code
Copy link
Member

@wow-such-code wow-such-code commented Jun 27, 2024

  • 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

@wow-such-code wow-such-code requested a review from a team as a code owner June 27, 2024 15:59
Copy link

@Steffengreiner Steffengreiner left a 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

*/
public static OpenBIS loginToOpenBIS(
char[] password, String user, String url, String dssUrl) {
//setupLog();

Choose a reason for hiding this comment

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

Suggested change
//setupLog();
//setupLog();

Why is this commented out? Is this not necessary anymore 🤔

pom.xml Outdated
Comment on lines 144 to 147
<configuration>
<source>11</source>
<target>11</target>
</configuration>

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

creation.setExperimentId(new ExperimentIdentifier(experimentID));
creation.setParentIds(parentCodes.stream().map(DataSetPermId::new).collect(
Collectors.toList()));
creation.setTypeId(new EntityTypePermId("UNKNOWN", EntityKind.DATA_SET));

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 🤔

Copy link
Member Author

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

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

solved

Copy link

@Steffengreiner Steffengreiner left a comment

Choose a reason for hiding this comment

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

Well done 👍

@wow-such-code wow-such-code merged commit 68a1e95 into development Jun 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants