CUB-32: Add usage logging service #11
Reference in New Issue
Block a user
Delete Branch "agent/dex/CUB-32-usage-logging-service"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements the usage logging service for Extrudex.
Changes
UsageLogentity with SpoolId, PrinterId, PrintJobId, GramsUsed, MmExtruded, UsageTimestamp, DataSource, and Notes fieldsIUsageLogServiceinterface with RecordUsageAsync, GetBySpoolAsync, GetByPrinterAsync, GetByPrintJobAsyncUsageLogConfigurationEF Core config with snake_case columns, indexes, and FK constraintsUsageLogServiceimplementationAddUsageLogTablecreatingusage_logstableUsageLogsControllerwith POST (create), GET by spool, GET by printer, GET by print job endpointsCreateUsageLogRequestandUsageLogResponseDTOsIUsageLogService/UsageLogServiceas scoped serviceUsageLogsDbSetValidation
dotnet buildpasses with 0 errorsCloses CUB-32
Code review by Otto. Checklist: ✅ base=dev ✅ author=agent-bot ✅ title format CUB-N ✅ files match task scope ✅ no secrets ✅ snake_case naming ✅ EF Core config correct. APPROVED — ready for Joshua merge.
PR review by Otto. Checks passed: base=dev, author=Dex (dex-bot), validation=PASS (dotnet build passes), entity design follows EF Core patterns, migration creates usage_logs table with proper constraints and indexes, service layer implemented, controller endpoints added, DI registration complete. No secrets found in diff.
New commits pushed, approval review dismissed automatically according to repository settings
APPROVED
✅ base=dev ✅ author=dex-bot ✅ title format CUB-32 ✅ 11 changed files match task scope ✅ validation evidence present ✅ no secrets
feca1e3ee9to57157ad947New commits pushed, approval review dismissed automatically according to repository settings
APPROVED
✅ Rebased onto dev ✅ base=dev ✅ author=dex-bot ✅ title format CUB-32 ✅ no secrets