Skip to content

BUG FIXES AND PERFOMANCE IMPROVEMENTS - v1.0.0b3

Choose a tag to compare

@Jonas1015 Jonas1015 released this 20 May 09:49
· 147 commits to main since this release
852ce98

Release Notes - v1.0.0b3

Features

CORS Configuration

  • Add configurable CORS settings via environment variables:
    • CORS_ALLOWED_ORIGINS - comma-separated allowed origins
    • CORS_ALLOW_CREDENTIALS - enable/disable credentials
    • CORS_ALLOW_METHODS - allowed HTTP methods
    • CORS_ALLOW_HEADERS - allowed headers

CLI Server Commands

  • New CLI flags for controlling server mode:
    • chacc run server --dev - Development mode with hot reload (CHACC_DEV_MODE env var no longer used)
    • chacc run server - Production mode without hot reload
  • Removed DEVELOPMENT_MODE environment variable in favor of CLI flags

Bug Fixes

Module Loading & Migrations

  • Fix critical timing issue where plugin setup functions ran before database migrations completed
  • Implement two-phase module loading: first discover models → run migrations → execute setup functions

Redis Startup

  • Disable Redis by default (REDIS_ENABLED=False) to prevent 5-second startup delay
  • Reduce Redis connection timeout from 5s to 2s for faster failure detection
  • Change Redis unavailable log level from error to debug for cleaner output

CLI & Server

  • Fix CLI start server command for production mode
  • Fix start server path resolution
  • Remove DevBackboneContext from CLI scaffold (simplified context factory)
  • Add get_db() async function to context factory for Depends usage

Model Discovery

  • Fix relative import resolution by loading sibling files before __init__.py

Performance

Environment Validation

  • Optimize env_validator to use pre-loaded constants instead of repeated decouple_config() calls
  • Eliminates disk I/O during startup validation

Startup Time

  • Remove backbone test execution from server startup (was blocking initialization)

Configuration Changes

Removed

  • DEVELOPMENT_MODE environment variable (use CLI --dev flag instead)