Skip to content

Feature: Image asset table and test harness updates - #166

Merged
jbriones1 merged 17 commits into
mainfrom
feat_163_image-asset-table
Aug 17, 2026
Merged

Feature: Image asset table and test harness updates#166
jbriones1 merged 17 commits into
mainfrom
feat_163_image-asset-table

Conversation

@jbriones1

@jbriones1 jbriones1 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

closes #163

Description

Added image_assets table, its supporting database table, endpoints, and tests. Made improvements to the test harness.

Changes

  • Added an image_asset database table storing image ID, storage key, original filename, and creation timestamp.
  • Added admin-protected GET /image and POST /image endpoints to list and upload images.
  • Supports JPEG, PNG, and WebP file formats, limited to 8 megapixel images.
  • Uploaded images are stored under MEDIA_ROOT/images with uuid4 filenames and returns a public URL based on MEDIA_BASE_URL.
  • Added a script to import existing files from the media images directory into the database.
  • Added MEDIA_ROOT and MEDIA_BASE_URL environment variables.
  • Updated documentation about supported environment variables.
  • Added Pillow and multipart-upload dependencies.
  • Disabled permission dependencies in the development environment while retaining them in test and production.
  • Added unit and integration coverage for image validation, authorization, uploads, and failure cleanup.
  • Improved integration-test isolation using per-test transactions and savepoints, with related fixture/test corrections.

Fixes

  • Added a migration reducing computing ID columns from 32 to 8 characters.

@jbriones1
jbriones1 merged commit 77ef22c into main Aug 17, 2026
3 checks passed
@jbriones1
jbriones1 deleted the feat_163_image-asset-table branch August 17, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image Asset Table

1 participant