Deployment simplification and IPAsset performance work in lore_backend
By RepoJournal , from @anurag629's public GitHub activity
Backfilled
Anurag Verma made 8 commits to lore_backend on Thursday, December 11, 2025, stripping out Celery and Azure complexity from the deployment pipeline while refactoring the IPAsset model for better query performance.
The day split between two main threads: deployment configuration and data model optimization. On the deployment side, Verma added an Azure App Service workflow [1], then refined it to install production dependencies and improve permissions formatting [2]. He initially enhanced production settings to support Azure Blob Storage for media files and improved database connection handling [3], but then made a decisive pivot to remove Celery entirely [4], simplifying the project setup by eliminating Redis and Azure-specific configurations from .env.example. This streamlining continued with a dependency update [5] that added opencv-python-headless and numpy while removing unnecessary AI agent packages. On the model side, Verma refactored the IPAsset class [6] with prefetching and annotation to optimize queryset handling for derivative counts, adding a get_all_derivatives method to the serializer. The deployment work wrapped with two final refinements: adding static file collection to the Azure workflow [7], then removing the custom host validation class and adjusting middleware configuration for better Azure health check handling [8]. The net effect across the day was moving lore_backend toward a cleaner, simpler production deployment.
One email a day. Unsubscribe in one click.
A short briefing every day anurag629 ships something — in about 3 minutes.
One email a day. Unsubscribe in one click. Read a past issue →
References
- [1] Add or update the Azure App Service build and deployment workflow config anurag629/lore_backend
- [2] Update Azure deployment workflow to install production dependencies and improve permissions formatting anurag629/lore_backend
- [3] Update Celery configuration to use production settings by default and enhance production settings for Azure deployment, including improved database connection handling and optional Azure Blob Storage anurag629/lore_backend
- [4] Remove Celery configuration and related dependencies from the project, simplifying the setup for the current deployment. Update .env.example to reflect the removal of Redis and Azure settings, and cle anurag629/lore_backend
- [5] Update dependency requirements to include opencv-python-headless and numpy, while removing unnecessary packages for AI Agents. This streamlines the project setup and clarifies the dependencies needed anurag629/lore_backend
- [6] Refactor IPAsset model to improve performance and maintainability by optimizing queryset handling with prefetching and annotation for derivative counts. Enhance serializers to support parent asset ID anurag629/lore_backend
- [7] Enhance Azure deployment workflow by adding a step to collect static files using local settings, ensuring proper handling of static assets during deployment. Update production settings to allow Azure anurag629/lore_backend
- [8] Refactor production settings to remove Azure internal health check IPs and custom host validation class. Update middleware configuration to prioritize Azure health check handling and adjust static fil anurag629/lore_backend