Skip to content

fix(datasets): raises correct error message on import of protected dataset#1112

Merged
jsam merged 7 commits into
masterfrom
1110_correct_msg
Mar 19, 2020
Merged

fix(datasets): raises correct error message on import of protected dataset#1112
jsam merged 7 commits into
masterfrom
1110_correct_msg

Conversation

@jsam
Copy link
Copy Markdown
Contributor

@jsam jsam commented Mar 17, 2020

closes: #1110

This issue leads to another feature which we currently don't support, but probably should. Jen in that ticket wanted to import a dataset which contains protected files. Now this is currently not supported within renku on any of the providers. We should probably think about building that soon since we have people requesting this.

I created a followup ticket for this: #1113

@mohammad-alisafaee mohammad-alisafaee self-assigned this Mar 19, 2020
@mohammad-alisafaee mohammad-alisafaee removed their assignment Mar 19, 2020
Comment thread renku/core/commands/providers/zenodo.py Outdated
"""Get Zenodo files metadata as ``ZenodoFile``."""
if len(self.files) == 0:
if not self.files:
raise LookupError('no files have been found')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's better to mention that there might be protected/restricted files: 'no files have been found or there are files with restricted access'

Copy link
Copy Markdown
Contributor Author

@jsam jsam Mar 19, 2020

Choose a reason for hiding this comment

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

Sure. Maybe the following wording would work better?

no files have been found - deposit empty or protected

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

no files have been found - deposit is empty or protected sounds better to me but up to you.

Copy link
Copy Markdown
Contributor

@mohammad-alisafaee mohammad-alisafaee left a comment

Choose a reason for hiding this comment

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

Just a wording change.

Copy link
Copy Markdown
Contributor

@mohammad-alisafaee mohammad-alisafaee left a comment

Choose a reason for hiding this comment

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

Thanks!

@jsam jsam merged commit e579904 into master Mar 19, 2020
@jsam jsam deleted the 1110_correct_msg branch March 19, 2020 10:22
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.

unexpected keyword argument 'access_conditions' when importing zenodo dataset in Jupyterlab terminal

2 participants