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

NZSL-159: Update dictionary from S3 rather than a github release #1523

Merged
merged 6 commits into from
Jan 15, 2024

Conversation

joshmcarthur
Copy link
Contributor

This pull request modifies the boot process of the NZSL Dictionary to download a file from a specified S3 location. This can be a public or private S3 object, and the URI is specified using an environment variable. We attempt to download from the public location first, then attempt to generate a presigned URL and download from that. If no keypair is present and the public URL is not accessible (e.g. this is a prerelease database), then the app continues to boot, but without a dictionary database.

The Github releases continue to be available for app use, however using a file pushed to S3 allows us to handle data previews and a faster release cycle when checking signs prior to public release.

@joshmcarthur joshmcarthur merged commit acfcdb1 into main Jan 15, 2024
6 checks passed
@joshmcarthur joshmcarthur deleted the task/nzsl-159-update-nzsl-dictionary-from-s3 branch January 15, 2024 00:45
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