Skip to content

Comments

Merge from internal#2

Merged
keeganwhite merged 7 commits intomainfrom
merge-from-internal
Aug 22, 2025
Merged

Merge from internal#2
keeganwhite merged 7 commits intomainfrom
merge-from-internal

Conversation

@keeganwhite
Copy link
Member

Merging automation and general system improvements:

  • Automated Production Setup - The new setup.sh script
  • Key Generation Utility - The generate_keys.py script
  • Enhanced API Performance - Database-first approach and pagination
  • Management Commands - All the JSON-based creation commands
  • Technical Improvements - Docker, security, and performance enhancements

- Updated `docker-compose-dev.yml` to include a sleep command before database migrations and added makemigrations step.
- Modified `docker-compose-prod.yml` to use environment variables for Traefik configuration and updated container names for versioning.
- Added a new `setup.sh` script for easier environment setup and management.
- Updated `README.md` to include prerequisites and setup instructions.
- Introduced new JSON example files for RADIUSdesk and smart contracts.
- Added management commands for creating users and smart contracts from JSON files.
- Implemented TimescaleDB checks and continuous aggregate refresh commands.
- Enhanced serializers and views for better data handling and pagination in the API.
- Increased `max-line-length` in `.flake8` from 90 to 120.
- Refactored `create_radiusdesk_from_json.py` to use a `defaults` dictionary for profile creation.
- Improved formatting in `create_smart_contracts_from_json.py`, `create_users_from_json.py`, and other management commands for better readability.
- Added missing newlines and adjusted spacing in various files for consistency.
- Updated container names and volume names in `docker-compose-dev.yml` to include `-dev` suffix for clarity.
- Removed obsolete migration files from various apps, including `api_key`, `core`, `network`, and `radiusdesk`, to clean up the codebase.
- Ensured consistency in migration management by deleting unnecessary migration files that are no longer in use.
- Introduced `generate_keys.py` to generate Django secret key and encryption key for Inethi backend setup.
- The script provides usage instructions and security notes for handling the generated keys.
- Includes error handling and troubleshooting guidance for missing dependencies.
…ails

- Added Traefik configuration variables to .env.example for backend setup.
- Enhanced users.json by including first and last names for network administrators to improve user data completeness.
- Added SUPERUSER_USERNAME and SUPERUSER_PASSWORD placeholders to .env.example for superuser setup.
- Simplified user and smart contract creation commands in setup.sh by removing unnecessary path prefixes for JSON files.
@keeganwhite keeganwhite merged commit 370fad2 into main Aug 22, 2025
1 check passed
@keeganwhite keeganwhite deleted the merge-from-internal branch August 22, 2025 15:29
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.

1 participant