Repository navigation
Move media operations to storages backend - #6478
Merged
Merged
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Member
Author
|
Currently a non-functional WIP |
SchrodingersGat
approved these changes
Feb 14, 2024
matmair
marked this pull request as ready for review
March 22, 2024 23:12
Member
Author
|
@SchrodingersGat ready for review; next PR in this series is the new Files model |
Member
|
@matmair LGTM but let's keep a close eye on this over the next few weeks before pushing next stable. |
Member
Author
|
There are another few changes incoming to close out #5703 so there will be a few other huge changes |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

This PR is part of #5703. Changes all media (label, attachments, reports) to use Django's storage API.
The following files are not covered: config.yaml, plugins.txt, secret.txt, locale_stats.json as they are used in management commands / during startup and possible solutions felt unintuitive/made config stuff much more complicated.
This allows the usage of alternative storage backends like S3. This PR does not include the dependencies, config, docs, etc. for that. This PR is an internal refactor in preparation for the new File model.
Part of adressing #2585.