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

feat(migrations): add file metadata to S3 files #3804

Merged
merged 9 commits into from Jan 10, 2024

Conversation

Pavel910
Copy link
Collaborator

Changes

This PR adds a migration for S3 files created using File Manager. The new asset delivery system needs to bootstrap the entire Webiny context, which requires information about tenant and locale. The only possible way to provide this information to the system is if we can resolve it based on a file key. For this purpose, we're creating an extra .metadata file with every file created via the File Manager.

How Has This Been Tested?

Manually, by uploading 1000+ files in an older system, then upgrading to an unstable release, and running the migration. After the deployment, all files continue to work as expected.

@Pavel910 Pavel910 added this to the 5.39.0 milestone Jan 10, 2024
@Pavel910 Pavel910 merged commit b0b7d15 into next Jan 10, 2024
78 checks passed
@Pavel910 Pavel910 self-assigned this Jan 24, 2024
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.

None yet

1 participant