Skip to content

modernize#213

Open
tbotnz wants to merge 57 commits into
masterfrom
modernize
Open

modernize#213
tbotnz wants to merge 57 commits into
masterfrom
modernize

Conversation

@tbotnz

@tbotnz tbotnz commented Mar 23, 2026

Copy link
Copy Markdown
Owner

This pull request introduces foundational changes for the Netpalm modernisation project.

This will be updated as work progresses

tbotnz added 30 commits March 23, 2026 06:40
…Registry and add new operation classes for service management, configuration, and script execution.
…nfig modules; update driver initialization and error handling
…update environment variables in Docker Compose files and related settings.
… adjustments, and consistent styling across components
…eckError in unit tests for improved exception handling
…ndant pip command; clean up unit tests by removing unused code and dependencies.
tbotnz added 27 commits March 23, 2026 09:38
- Updated type hints from `Optional` and `Union` to use the new `|` syntax for better readability.
- Reorganized import statements for consistency and clarity.
- Removed unnecessary imports and cleaned up code in various files including models, routers, and utilities.
- Adjusted datetime handling to use `datetime.now(UTC)` instead of `timezone.utc`.
- Enhanced logging messages for clarity.
- Improved code structure in test files by removing unused imports and optimizing type hints.
- Created tests for Jinja2 template utility, including rendering and template retrieval.
- Added tests for the ls (list files) utility to verify template and script listing functionality.
- Implemented tests for Pydantic models and database models, covering various model behaviors.
- Developed tests for the OperationRegistry to ensure proper registration and execution of operations.
- Added tests for the Scheduler, focusing on job dispatching and scheduling logic.
- Created tests for the template router, covering routes for Jinja2 templates, scripts, and webhooks.
- Implemented tests for the universal template manager utility, verifying template addition, retrieval, and removal.
- Added tests for the webhook runner utility to ensure proper execution and initialization of webhooks.
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