Skip to content

fix: add typed outputs to sample trains#12

Merged
Theauxm merged 5 commits into
mainfrom
fix/remove-unit-output-constraint
Mar 6, 2026
Merged

fix: add typed outputs to sample trains#12
Theauxm merged 5 commits into
mainfrom
fix/remove-unit-output-constraint

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented Mar 5, 2026

Summary

  • Updated 4 sample trains to return typed output records instead of Unit:
    • ProcessMatchResultTrainProcessMatchResultOutput (ELO changes, anomaly count)
    • RecalculateLeaderboardTrainRecalculateLeaderboardOutput (player count, top player)
    • GenerateSeasonReportTrainSeasonReportOutput (report ID, match/player counts)
    • LookupPlayerTrainPlayerProfile (rank, wins, losses, rating)
  • These demonstrate the scheduler's support for non-Unit output types and make outputs visible on the dashboard.

Test plan

  • dotnet build succeeds with zero errors
  • Run scheduler and verify typed outputs appear on the dashboard MetadataDetailPage

Update ProcessMatchResultTrain, RecalculateLeaderboardTrain,
GenerateSeasonReportTrain, and LookupPlayerTrain to return typed
output records instead of Unit, demonstrating the scheduler's
support for non-Unit output types on the dashboard.
@Theauxm Theauxm force-pushed the fix/remove-unit-output-constraint branch from c50b159 to 1b1e4cc Compare March 5, 2026 16:18
Theauxm added 4 commits March 5, 2026 10:15
Update sample projects to match Trax.Scheduler rename.
Update all sample Program.cs files to use services.AddTrax(trax => trax.AddEffects(...).AddMediator(...).AddScheduler(...)) pattern. Restructure sample directory layout.
Prevents accidental resolution of unlisted 2.x packages from nuget.org
by constraining cross-repo PackageReference to 1.* range.
@Theauxm Theauxm merged commit b02755e into main Mar 6, 2026
1 of 2 checks passed
@traxsharp
Copy link
Copy Markdown

traxsharp Bot commented Mar 6, 2026

This PR is included in version 1.7.0

@Theauxm Theauxm deleted the fix/remove-unit-output-constraint 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