Skip to content

Fix zenodo export relative path#620

Merged
rokroskar merged 3 commits into
masterfrom
fix-zenodo-export-relative-path
Aug 13, 2019
Merged

Fix zenodo export relative path#620
rokroskar merged 3 commits into
masterfrom
fix-zenodo-export-relative-path

Conversation

@Panaetius
Copy link
Copy Markdown
Member

Description

Sets the client property of files in a dataset after the dataset has been loaded. This is needed to ensure the full_path property of files returns the correct path to a file irrespective of the current working directory.

Also adds a new unit test to check for this case

Fixes #617

Type of change

Please select relevant options.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

Do not create pull request unless you checked all points.

@Panaetius Panaetius requested a review from a team as a code owner August 8, 2019 14:29
Copy link
Copy Markdown
Member

@rokroskar rokroskar left a comment

Choose a reason for hiding this comment

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

Looks good, just a minor question

Comment thread renku/models/datasets.py Outdated
ableuler
ableuler previously approved these changes Aug 9, 2019
Copy link
Copy Markdown
Contributor

@ableuler ableuler left a comment

Choose a reason for hiding this comment

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

Looks good to me! 👍
And thanks for fixing the quotes that made the tests fail! 😎

@Panaetius
Copy link
Copy Markdown
Member Author

Everything should work now without the key error. There was an issue with path's of Datasetfile's not being set correctly for files in external git repos.

Copy link
Copy Markdown
Member

@rokroskar rokroskar left a comment

Choose a reason for hiding this comment

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

great, thanks for figuring this one out!

@rokroskar rokroskar merged commit d40967c into master Aug 13, 2019
@rokroskar rokroskar deleted the fix-zenodo-export-relative-path branch August 13, 2019 09:50
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.

Invalid path when exporting dataset to Zenodo

3 participants