-
Notifications
You must be signed in to change notification settings - Fork 2
Feat: Check if item version is already preserved before bagging (Issue #102) #103
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
Merged
zoidy
merged 61 commits into
main
from
102-feature-check-if-bag-exist-in-ap-trust-prior-to-bagging
Sep 16, 2024
Merged
Changes from 54 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
4421acf
Check if bag exists in AP Trust and Wasabi before creating the bag
a76146e
Document all functions in figshare/Utils.py
89eaea5
Check if bag exists in AP Trust and Wasabi before creating the bag
HafeezOJ eb5685d
Document all functions in figshare/Utils.py
HafeezOJ 6315c67
Merge branch '102-feature-check-if-bag-exist-in-ap-trust-prior-to-bag…
HafeezOJ 283793e
Count and log already preserved collections
HafeezOJ 25bcc88
Include AP Trust details in .env.sample.ini
HafeezOJ 1f24c30
Include aptrust_api configuration in How to run section of README.md
HafeezOJ 77595ca
Correct preservation_storage_location in README.md
HafeezOJ 719b8ab
Lint
HafeezOJ 8431f4c
Skip authors list in metadata sorting
HafeezOJ 32cc1b1
Remove logging for articles not found in Wasabi or AP Trust
HafeezOJ d35d11a
Keep counts of skipped articles and versions in a class dict
HafeezOJ 743fb9a
Fix counts of articles in log
HafeezOJ db084a9
Make a function to get preserved packages filenames and their sizes f…
HafeezOJ 7c87657
Make check_wasabi() return a tuple containing hash and size in Utils.py
HafeezOJ c86a79c
Get wasabi_preserved_size from check_wasabi() in Article.py
HafeezOJ d1e86b7
Document get_filenames_and_sizes_from_ls() in Utils.py
HafeezOJ 6270394
Create a function calculate size of UAL_RDM in Utils.py
HafeezOJ 320f8a4
Create a function to calculate Figshare json file size in Utils.py
HafeezOJ fc3c6b8
Create a function to calculate payload size in Utils.py
HafeezOJ 0a5833d
Correct variable names in calculate_payload_size and calculate_json_f…
HafeezOJ bbcb704
Return AP Trust payload size in get_preserved_version_hash_and_size
HafeezOJ 23a582d
Remove unused imports from and variables in Utils.py
HafeezOJ c81055a
Log size mismatch if any for already preserved article
HafeezOJ 5e8596f
Use tempfile in place of buffer folder creation
HafeezOJ bb558f9
Fix sorting where there are no uniform fields in nested dicts
HafeezOJ c756c88
Include recursive sort of nested lists
HafeezOJ 0b13234
Initialize already_preserved_counts_dict items at class level
HafeezOJ 73550ea
Avoid unsupported dict < dict in recursive sorting
HafeezOJ 377042a
Add more to AP Trust config
HafeezOJ 415866d
Paginate calls to AP Trust
HafeezOJ 0e825a4
Remove duplicate log messages
HafeezOJ 3be308a
Document new functions in Utils.py
HafeezOJ dffc1c7
Fix summary counts for collections
HafeezOJ f03dbe4
Use set to keep articles skipped in Article.py
HafeezOJ b84f6bb
Remove unused lines
HafeezOJ 457f9a3
Document skipping of already preserved article
HafeezOJ 20388fc
Document skipping of already preserved collection
HafeezOJ 22826d5
Remove unused lines
HafeezOJ 7e17595
Remove item_type from AP Trust config
HafeezOJ 2b35118
Document additional config for AP Trust in README
HafeezOJ d2191fa
Remove Pycharm-specific import format for multi-level folders
HafeezOJ 24d3559
Lint
HafeezOJ b8e3e9e
Lint
HafeezOJ 2600e3b
Correct AP Trust url in README
HafeezOJ 4c2225e
Remove PyCharm auto-import style
HafeezOJ 6047346
Fix strings that broken into newlines in the codes
HafeezOJ bc6c40f
Align log count figures
HafeezOJ 24c00f3
Reorder log messages
HafeezOJ f10c8e7
Remove warning when collections are skipped and fetched/processed cou…
HafeezOJ 5f4e4bc
Append / to AP Trust base url if not present
HafeezOJ a5d563b
Lint
HafeezOJ 30bfef6
Lint
HafeezOJ 8c12a19
Align log figures based on standard Linux terminal
HafeezOJ 71e9709
Clean up and prettify log outputs
zoidy f2637b0
lint
zoidy 95eae49
Skip checking required space when all articles are skipped
HafeezOJ 4062de9
Exclude size of curation folder for skipped articles during space check
HafeezOJ 94080a4
Lint
HafeezOJ 937fd45
Lint
HafeezOJ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.