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: Preprocessing of articles stops if curation folder does not exist for an article (Issue #105) #107

Conversation

HafeezOJ
Copy link
Collaborator

@HafeezOJ HafeezOJ commented Oct 1, 2024

Description
While fetching items, preservation remote storages are checked for a preserved copy of each item. For an article, the size (in bytes) of its UAL_RDM folder in curation storage is required (#103). If the UAL_RDM folder of an article is not found or an error occurs during size calculation, the fetching of articles stops regardless of whether there are more articles to be fetched.

This PR fixes the issue by logging an error and aborting execution if the --continue-on-error flag is not set else it logs an error and skips the article with with error. It also updates the execution notes in README with this behaviour.

Note: This PR adds counts of articles and versions with fetch error the to log summary.

Fixes #105

Screenshots or additional context
None

Testing (if applicable)
See Steps To Reproduce in #105

figshare/Article.py Outdated Show resolved Hide resolved
figshare/Utils.py Show resolved Hide resolved
@zoidy zoidy merged commit f078af4 into main Oct 3, 2024
1 check passed
@zoidy zoidy deleted the 105-bug-preprocessing-of-articles-stops-if-curation-folder-does-not-exist-for-an-article branch October 3, 2024 18:46
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.

Bug: Preprocessing of articles stops if curation folder does not exist for an article
2 participants