Skip to content

Development Documentation

This directory contains development guidelines, best practices, and technical documentation for Controlvar.

Files

  1. Development Guidelines: the Python, lint and pull request rules
  2. Testing Guide: running the suites, and the rules a new test follows
  3. Runnable Documentation Examples: tagging and enrolling a page's shell examples
  4. Database
  5. Migrations Guide
  6. Using the Data Layer
  7. Backup Guide
  8. Dependency Injection: a route's session, caller and permission checks
  9. CI workflows: the required checks, and running them yourself

Common Tasks

  1. Database Management
  2. Creating Migrations
  3. Running Backups

  4. Development Process

  5. Pull requests
  6. Testing

  7. CI

  8. Required checks

  9. Deterministic Backend Test Profile

  10. Start test dependencies with Docker Compose:
    • docker compose -f docker-compose.test.yml up -d postgres-test redis-test
  11. Run the standardized backend release checks:
    • ./scripts/run-backend-tests.sh release
  12. For full local parity (starts/stops containers automatically):
    • EP_TEST_PROFILE=compose ./scripts/run-backend-tests.sh all

Best Practices

  1. Code Quality
  2. Follow the Development Guidelines
  3. Write comprehensive tests
  4. Document your code
  5. Review before committing

  6. Database

  7. Use migrations for schema changes
  8. Follow backup procedures
  9. Optimize queries
  10. Handle transactions properly

  11. Architecture

  12. Use dependency injection
  13. Follow SOLID principles
  14. Write modular code
  15. Consider scalability

Need Help?