Repository navigation
Conversation
Signed-off-by: Erik Nilsen <enilsen16@live.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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 |
PR SummaryMedium Risk Overview Flow building for upsert read-model slices now drops those sibling-covered fields from the slice’s downstream read-model field list (using a new Adds regression tests for multi-slice ordering scenarios, version bumps, slices moved to another read model, undeclared-field edge cases, and delete siblings. Reviewed by Cursor Bugbot for commit 48a315f. Bugbot is set up for automated code reviews on this repo. Configure here. |
…odel slices Signed-off-by: Erik Nilsen <enilsen16@live.com>
… bumps Signed-off-by: Erik Nilsen <enilsen16@live.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Reviewed by Cursor Bugbot for commit 0191cea. Configure here.
…pply every field Signed-off-by: Erik Nilsen <enilsen16@live.com>

Problem
CheckInformationCompletenesschecks each upsert read-model slice against every field of its read model. When several slices feed one read model, each slice supplies only part of it. So each field that a sibling slice supplies is reported asKIND_MISSING_SOURCE, and the score goes down, although every field has a source.Change
slices_feeding.delete_only_sourcesand the new sibling check both use it.This applies in all scopes, because the sibling scan reads the whole store, the same as
delete_only_sources.Open question
RM_SOURCE_EVENT_FIELD_NOT_PROJECTEDstill requires each read model fed from a lane to carry every lanestatefield. This PR does not change that rule. With this fix, authors no longer need lanestateas a workaround for completeness. Do you want the rule to stay as it is, or to become less strict (for example, a warning)?Test
upsert_slice_does_not_require_fields_a_sibling_slice_supplies: the issue's repro (summary-on-placedandsummary-on-shippedfeedorder-summary). Event-model scope gives no gaps and a score of 1.0.field_no_slice_supplies_is_still_missing_with_siblings: a read-model field that no event carries is stillMissingSource.delete_sibling_does_not_supply_fields: a delete slice does not hide a missing field.cargo test -p trogon-atlas-serverandcargo clippy -p trogon-atlas-server --all-targets -- -D warningspass.Closes #126
Need help on this PR? Tag
@codesmith-botwith what you need.