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

Add B2Share support #88 #89

Merged
merged 28 commits into from
Sep 30, 2024
Merged

Add B2Share support #88 #89

merged 28 commits into from
Sep 30, 2024

Conversation

micafer
Copy link
Contributor

@micafer micafer commented Sep 24, 2024

No description provided.

@J535D165
Copy link
Owner

It would be very cool to add support for this!

Can you rebase?

@J535D165 J535D165 added enhancement New feature or request new repository Add support for a new repository labels Sep 29, 2024
@J535D165
Copy link
Owner

It might also be nice to split the filter-files extension from the PR so that we can have a closer look at the design. It looks promising.

@micafer
Copy link
Contributor Author

micafer commented Sep 30, 2024

Code cleaned.

pyproject.toml Outdated Show resolved Hide resolved
datahugger/base.py Outdated Show resolved Hide resolved
@J535D165 J535D165 linked an issue Sep 30, 2024 that may be closed by this pull request
@@ -320,7 +320,7 @@ class MendeleyDataset(DatasetDownloader):
class OSFDataset(DatasetDownloader):
"""Downloader for OSF repository."""

REGEXP_ID = r"osf\.io\/(?P<record_id>.*)/"
REGEXP_ID = r"osf\.io\/(?P<record_id>[^\/]*)\/{0,1}"
Copy link
Owner

Choose a reason for hiding this comment

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

Interesting catch. I'm fine with keeping this in this PR.

@J535D165
Copy link
Owner

Apparently, the test fails because I removed the raise_for_status d8a4a49. I'm a bit confused.

datahugger/services.py Outdated Show resolved Hide resolved
@J535D165
Copy link
Owner

Now it passes. Did they change something to their API since the commit of @micafer 5 hours ago...?

Nevertheless, thanks a lot, @micafer, for another cool contribution!

@J535D165 J535D165 merged commit 66d71ab into J535D165:main Sep 30, 2024
19 checks passed
@micafer
Copy link
Contributor Author

micafer commented Oct 1, 2024

Now it passes. Did they change something to their API since the commit of @micafer 5 hours ago...?

It should not have changed.

@micafer
Copy link
Contributor Author

micafer commented Oct 1, 2024

Apparently, the test fails because I removed the raise_for_status d8a4a49. I'm a bit confused.

It should not affect the tests.
I added to improve the error message shown to the user in case of HTTP error. Without it the HTTP error is hidden and the error message shown is a bit confusing,

@J535D165
Copy link
Owner

J535D165 commented Oct 1, 2024

It works now! I tested it on the benchmark dataset. Everything looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new repository Add support for a new repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support B2Share repository
2 participants