All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Improve performance of streamed file downloads changed in v0.8 (#44 @alxbridge
- Improved handling for unexpected server error responses when downloading Bynder assets (#43) @alxbridge
- Optimisation: Only initialise view classes in
PatchWagtailURLsMiddlewarewhen we know they are being used as a replacement (#36) @ababic
0.6 - 2024-07-29
- BYNDER_MAX_DOCUMENT_FILE_SIZE and BYNDER_MAX_IMAGE_FILE_SIZE settings to guard against memory spikes when downloading asset files ([#31]#31) @ababic
- Automatic reformatting and downsizing of source images (#32) @ababic
- Improved clash detection/handling in choosen views (#30) @ababic
0.5.1 - 2024-07-29
- Video chooser URL generation @ababic
0.5 - 2024-07-29
- Compatibility with Wagtail 6.1 (#34) @ababic
0.4.1 - 2024-07-02
- Allow
RedirectToBynderMixinviews to process post requests as normal when not redirecting to Bynder (#28) @ababic
0.4 - 2024-04-25
- Dropped support for Wagtail < 5.2, Django < 4.2 - in line with currently maintained versions. @zerolab
- Tidied up the tooling configuration and dependencies. @zerolab
- Stale renditions are now deleted when file or focal area changes are detected. #24 @ababic
- Improve conversion of focus points into focal areas #26 @ababic Now the focal area is square at 40% the width/height of the image with a center in the focus point.
- Fix:
TypeErrorwhen using new 'refresh' commands #23 @ababic
0.3 - 2024-04-12
- Added
source_filenameandoriginal_filesizefields to all base models, and updatedupdate_from_asset_data()to set them accordingly. - Added
original_heightandoriginal_widthfields to image and video base models, and updatedupdate_from_asset_data()to set them accordingly. - Added "What to ask of Bynder" section to
README.md. #15 @ababic - Improved test coverage
- Management commands to refresh all local objects. #18 @ababic
They are
refresh_bynder_documents,refresh_bynder_imagesandrefresh_bynder_videos
- Removed the
metadatafield from all base models, along withdirectly_mapped_bynder_fieldsattributes, and theextract_relevant_metadata()method used for setting the field value during an update. - Removed the
bynder_original_filenamefield from all base models. This has now been succeeded bysource_filename, which stores a value more relevant to each type. - Removed the
bynder_id_hashfield from all base models. - Removed the
download_asset_file()method from all base models. The responsibility for downloading assets now falls to theupdate_file()method (applies to image and document models only).
- The
bynder_idfield on all base models now supportsnullvalues, allowing a mix of images/documents from different sources to be added to be saved. - Fixed an issue with
file_hashandfile_sizefields not being set correctly when a model instance is created or updated to reflect Bynder asset data. - Updated
asset_file_has_changed()implementations on all models to take into account values from newsource_filename,original_filesize,original_heightandoriginal_widthmodel fields. - Consistently raise
wagtail_bynder.exceptions.BynderAssetDataError(instead ofdjango.core.exceptions.ImproperlyConfiguredorKeyError) when API representations from Bynder do not contain data required for the integration to work properly. - Changed the default
BYNDER_VIDEO_PRIMARY_DERIVATIVE_NAMEsetting value from"Web-Primary"to"WebPrimary"to reflect new guidance inREADME.md. - Changed the default
BYNDER_VIDEO_FALLBACK_DERIVATIVE_NAMEsetting value from"Web-Fallback"to"WebFallback"to reflect new guidance inREADME.md. - Changed the default
BYNDER_IMAGE_SOURCE_THUMBNAIL_NAMEsetting value from"webimage"to"WagtailSource"to reflect new guidance inREADME.md.
0.2 - 2024-02-25
- Option to limit timeframes (to day, hours or minutes) in the sync management commands. #10 @ababic
- Setting to conditionally sync video data when chosen #12 @ababic
The new setting is
BYNDER_SYNC_EXISTING_VIDEOS_ON_CHOOSE, in line with those for images/documents. - Improved test coverage
- Date filter silently ignored by Bynder in management commands #10 @ababic
0.1 - 2024-01-21
Initial release