-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to reuse PackageVersion icon on test data creation
Reusing the same image means we don't need to upload so many images to S3 bucket (or multiple buckets if mirrors are configured), significantly speeding up creating larger data sets. The implementation reuses the path of the first created image, which uses the team-package-version naming pattern, instead of using something more descriptive like "default.png". Bypassing the generated name would have required hacky stuff for the function that calculates the value for ImageField's upload_to attribute, or the models save method. As this would make it theoretically possible to things go wrong in the production, it was deemed better to just use the misleading image name in test environments.
- Loading branch information
Showing
4 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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 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 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