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

Revise model fields and asset file check/download logic #19

Merged
merged 20 commits into from
Apr 11, 2024
Merged

Commits on Apr 5, 2024

  1. Allow 'bynder_id' to be null (projects need to be able to use the ima…

    …ge/document library to store non-bynder images too)
    ababic committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    4e3ea5a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ff846f View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2024

  1. Replace 'bynder_original_filename' with 'source_filename' and add 'or…

    …iginal_filesize', 'original_height' and 'original_width' fields where appropriate
    ababic committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    40a955d View commit details
    Browse the repository at this point in the history
  2. Update file download/update logic:

    - Add extract_file_source() methods to classes, which control where to download the source file from
    - Move file update logic to a dedicated method to make it easier to override
    - Use source_filename, original_filesize, original_height and original_width to detect when file changes may be needed
    - Set source_filename, original_filesize, original_height and original_width when a file change is made
    ababic committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    2779200 View commit details
    Browse the repository at this point in the history
  3. Ensure 'filesize' and ‘file_hash’ fields are updated when an image or…

    … document file is updated
    ababic committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    91049d6 View commit details
    Browse the repository at this point in the history
  4. Replace download_document() and download_image() with a single downlo…

    …ad_asset() function (and resolve typing issues)
    ababic committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    59ee2f0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c35efa7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    db6f611 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    57d971d View commit details
    Browse the repository at this point in the history
  8. Raise a custom exception when there is some kind of issue with Bynder…

    … asset data
    
    f exception
    ababic committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    8d66c32 View commit details
    Browse the repository at this point in the history
  9. Add migrations

    ababic committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    3c708c1 View commit details
    Browse the repository at this point in the history
  10. Update get_test_asset_data() to provide more realistic representation…

    …s for video and document assets
    ababic committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    bb6a495 View commit details
    Browse the repository at this point in the history
  11. Add tests for model logic

    ababic committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    ed01be1 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    77e2a0a View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Update derivative setting defaults to reflect advice in README and va…

    …lues in test settings
    ababic committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    17489ba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2ded683 View commit details
    Browse the repository at this point in the history
  3. Placate ruff

    ababic committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    99da4e3 View commit details
    Browse the repository at this point in the history
  4. Update changelog

    ababic committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    e6ffe16 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7051925 View commit details
    Browse the repository at this point in the history
  6. [pre-commit.ci] auto fixes from pre-commit.com hooks

    for more information, see https://pre-commit.ci
    pre-commit-ci[bot] authored and ababic committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    84c56c5 View commit details
    Browse the repository at this point in the history