With currently several hundred of thousands of images, putting them all in one folder was starting to cause problems. We now shard them by UUID, which spreads them evenly over two levels.
1.2 KiB
Changelog for the next release
Upgrade steps
-
Some unused thumbnail sizes have been deleted, run
./manage.py prune-thumbnailsto delete dangling files -
The default location for ingredient images has changed. Please run
./manage migrate-ingredient-image-pathsto migrate existing entries. Note that this is technically optional, as the old paths will continue working, but it is advised for consistency.
Other changes
-
The ingredient API filter now supports range lookups on
nutriscore(gt,gte,lt,lte) in addition toexactandin, enabling queries like "better than C" (#2295). -
Add a new, more efficient ingredient API endpoint (
/api/v2/ingredient-sync) for synchronizing the local database with an upstream wger server (note that this is a fallback, the regular sync is still via the db dump) -
JWT refresh tokens now rotate on every use. Combined with blacklist-after-rotation this makes refresh tokens single-use and lets a leaked token live only until the next refresh call. It's recommended to update your
prod.envand setREFRESH_TOKEN_LIFETIMEto a value like 3000. -
Exercise language are now also checked when performing edits, instead of only during submission.