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/Add s3:// prefix to OpenAlex AWS blob URL if not present #172

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

alexmassen-hane
Copy link
Collaborator

Sometimes URLs for AWS blobs do not have the s3:// prefix, but it is required in later parts of the workflow for transferring files from the AWS bucket to GCS.

This PR adds the prefix in the ManifestEntry class if the URL does not start with it.
Assert is added in the ManifestEntry test to make sure that it is a valid AWS s3 bucket URL.

Copy link
Contributor

@jdddog jdddog left a comment

Choose a reason for hiding this comment

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

Thanks for fixing the issue with OpenAlex, Alex, it looks good!

@jdddog jdddog merged commit 67be3be into develop Jul 26, 2023
1 check passed
@jdddog jdddog deleted the fix/openalex-urls branch July 26, 2023 04:06
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.

2 participants