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

Fix & modularize DataPackage fetch methods #2613

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

robyngit
Copy link
Member

Builds on top of @vchendrix changes in PR #2608

vchendrix and others added 2 commits February 5, 2025 10:03
- Refactored the fetch method in DataPackage to return a Promise and handle options correctly.
- Added detailed documentation for fetch method usage.
- Improved error handling and retry logic for fetch method.
- Added unit tests for DataPackage fetch method to ensure proper functionality.
- Fixes the issue of a new resource map ID not being created on update

Closes #2607
- Update and add corresponding unit tests

Issue #2607
@robyngit robyngit requested a review from vchendrix February 14, 2025 23:10
@robyngit robyngit linked an issue Feb 14, 2025 that may be closed by this pull request
@robyngit
Copy link
Member Author

@vchendrix I was thinking about this and wonder if we should have an AppModel setting for the fetch timeout limit per file. Or if there's not one set, treat it as no timeout. What do you think?

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.

Cannot replace or remove files for a dataset published with a DOI
2 participants