feat(data-pathways): source id/name + delivery-log sourceId/eventType#215
feat(data-pathways): source id/name + delivery-log sourceId/eventType#215
Conversation
Mirrors the additive Phase 1 contract in data-pathways v2.6.0: - SourceConfigSchema gains optional id + name so callers can address and label pathway sources that share a flowType. - DataPathwayDeliveryLogEntrySchema adds nullable sourceId + eventType so consumers can see which source / event type produced each row. - DataPathwayDeliveryLogBatchEntrySchema accepts the same two fields on POST so workers can report them. Phase 2 in data-pathways will swap pump_states to id-keyed uniqueness and add sourceId-addressed pump-state commands; this SDK change lands the additive surface first. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughTypeBox schemas in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
SourceConfigSchemagets optionalid+nameso callers can address and label pathway sources that share a flowType.DataPathwayDeliveryLogEntrySchemaadds nullablesourceId+eventType.DataPathwayDeliveryLogBatchEntrySchemaaccepts the two new fields on POST.Mirrors the additive Phase 1 contract landed in data-pathways v2.6.0. Phase 2 will swap pump_states uniqueness to be id-keyed and add sourceId-addressed pump-state commands; this SDK change lands the additive surface first so consumers can start reading the new fields.
Test plan
deno test --allow-all test/tests/commands/data-pathways.test.tsgreen (new case:should accept sourceId and eventType on delivery log batch entries)Summary by CodeRabbit
New Features
Tests