Skip to content

Codex/fase 3 - #7

Merged
mathsant-js merged 6 commits into
mainfrom
codex/fase-3
Sep 17, 2026
Merged

mathsant-js merged 6 commits into
mainfrom
codex/fase-3

Conversation

@mathsant-js

Copy link
Copy Markdown
Owner

Fazendo o merge da fase 3 de desenvolvimento na main

- Add a reproducible UTC solar curve and a configurable station solar peak.
- Include the Alembic migration and tests for simulation, persistence, and API.
- Process CHARGING sessions by station using an injected power resolver
- Persist solar and energy readings in a single transaction
- Update session accumulators and enforce energy limits
- Prevent duplicate readings for the same station or session and timestamp
- Add tests for rollback, idempotency, and logging
- Add ADMIN-only status, start, stop, reset and manual tick endpoints.
- Cover authentication, lifecycle, readings and OpenAPI with API tests.
- Document Phase 3 behavior and the pending PostgreSQL validation.
- Declare enum check constraints explicitly in the SQLAlchemy models so Alembic recognizes the constraints already created by migrations.
- Update Phase 3 documentation with the PostgreSQL validation results.
@mathsant-js mathsant-js self-assigned this Sep 17, 2026
@mathsant-js mathsant-js added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 17, 2026
@mathsant-js
mathsant-js merged commit acf6810 into main Sep 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

1 participant