Skip to content

feat: persisted-operations schema and EF entities#67

Merged
Theauxm merged 1 commit into
mainfrom
feat/persisted-operations
May 8, 2026
Merged

feat: persisted-operations schema and EF entities#67
Theauxm merged 1 commit into
mainfrom
feat/persisted-operations

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented May 8, 2026

Summary

  • Adds trax.persisted_operation and trax.persisted_operation_history tables (migration 035).
  • Adds EF Core models (PersistedOperation, PersistedOperationHistory) plus their Persistent* mappings, surfaced as DbSets on the existing IDataContext.
  • Both tables live in the existing trax schema; consumers query them through the existing IDataContext (no new context).

This is the data-layer half of the persisted GraphQL operations feature. The GraphQL package and middleware live in Trax.Api (separate PR).

Test plan

  • dotnet build Trax.Effect/ produces zero warnings.
  • EF round-trip is exercised by Trax.Api.Tests.PersistedOperations.IntegrationTests.PersistedOperationsDbContextTests (in the Trax.Api PR).
  • Migration applies cleanly on a fresh schema (verified locally with docker compose up -d).

@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Theauxm Theauxm force-pushed the feat/persisted-operations branch from 21e7587 to b5eec61 Compare May 8, 2026 17:46
Adds the trax.persisted_operation and trax.persisted_operation_history
tables (migration 035) and the EF Core models that map to them. Both
tables live in the trax schema alongside the rest of the Trax tables;
the entities are surfaced as DbSets on the existing DataContext so
consumers can query them through IDataContext.

The persisted-operations feature is consumed by Trax.Api.GraphQL.
@Theauxm Theauxm force-pushed the feat/persisted-operations branch from b5eec61 to 5f1fae0 Compare May 8, 2026 17:51
@Theauxm Theauxm merged commit 2defdcc into main May 8, 2026
2 checks passed
@Theauxm Theauxm deleted the feat/persisted-operations branch May 8, 2026 18:04
@traxsharp
Copy link
Copy Markdown

traxsharp Bot commented May 8, 2026

This PR is included in version 1.35.0

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