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

Bug: Preprocessing of articles stops if curation folder does not exist for an article #105

Closed
1 task done
HafeezOJ opened this issue Sep 24, 2024 · 0 comments · Fixed by #107
Closed
1 task done
Assignees
Labels
bug Something isn't working

Comments

@HafeezOJ
Copy link
Collaborator

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

During preprocessing, a check to confirm if a preservation package exists for each item (article version or collection version). For an article, in addition to the JSON metadata hash, this requires calculating the payload size which is the sum of the total size of item files, the size of item UAL_RDM folder in curation staging storage in bytes and the size of the JSON metadata file from Figshare; all in bytes. The UAL_RDM folder is contained in the curation folder of an article version. If the curation folder for an article version does not exist, an exception is thrown and preprocessing does not proceed to other articles.

Fix
Skip the article without a curation folder and log an error.

Steps To Reproduce

  1. Select 2 or more article ids.
  2. Remove the curation folder for the first id.
  3. Run the software with --ids {article id with removed curation folder} [other article ids]
@HafeezOJ HafeezOJ added the bug Something isn't working label Sep 24, 2024
@HafeezOJ HafeezOJ self-assigned this Sep 24, 2024
zoidy added a commit that referenced this issue Oct 3, 2024
…-stops-if-curation-folder-does-not-exist-for-an-article

Fix: Preprocessing of articles stops if curation folder does not exist for an article (Issue #105)
@zoidy zoidy closed this as completed in #107 Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant