Skip to content

feat: add MisfirePolicy enum and manifest columns#10

Merged
Theauxm merged 1 commit into
mainfrom
feat/misfire-policy
Mar 2, 2026
Merged

feat: add MisfirePolicy enum and manifest columns#10
Theauxm merged 1 commit into
mainfrom
feat/misfire-policy

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented Mar 2, 2026

Summary

  • Add MisfirePolicy enum (FireOnceNow, DoNothing) to Trax.Effect.Enums
  • Add misfire_policy and misfire_threshold_seconds columns to the Manifest model and CreateManifest DTO
  • Register MisfirePolicy as a PostgreSQL enum type in all three Npgsql registration points (ModelBuilder, DataSource, DbContextFactory)
  • Add 022_misfire_policy.sql migration
  • Update all docker-compose files to create test databases (trax_scheduler_tests, trax_data_tests) via init-databases.sh

Test plan

  • Verify dotnet build succeeds
  • Verify migration creates the enum type and columns on a fresh database
  • Verify docker compose up creates all three databases (trax, trax_scheduler_tests, trax_data_tests)
  • Downstream: Trax.Scheduler tests pass against the new model

Add MisfirePolicy enum (FireOnceNow, DoNothing) with per-manifest
misfire threshold support. Register as PostgreSQL enum type and add
022_misfire_policy.sql migration with columns on the manifest table.

Also update docker-compose files to create test databases
(trax_scheduler_tests, trax_data_tests) via init-databases.sh so
any compose file can serve all integration test suites.
@Theauxm Theauxm merged commit 6f6d5e9 into main Mar 2, 2026
1 check passed
@traxsharp
Copy link
Copy Markdown

traxsharp Bot commented Mar 2, 2026

This PR is included in version 1.2.0

@Theauxm Theauxm deleted the feat/misfire-policy branch March 6, 2026 19:04
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