Repository navigation
fix(server): report scenario open questions and assumptions in validate_event_model - #203
Conversation
…te_event_model 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 SummaryLow Risk Overview Scenario annotation handling is centralized in Tests assert slice + scenario Reviewed by Cursor Bugbot for commit fd302bc. Bugbot is set up for automated code reviews on this repo. Configure here. |
Problem
applyreportsOPEN_QUESTION_PRESENTandASSUMPTION_PRESENTonly for scenario metadata.validate_event_modelreports them only for entity metadata. No single call lists all open questions and assumptions in a model.Change
push_scenario_annotation_findings.validate_scenarios(apply) andvalidate_modelboth call it, so the two surfaces give the same finding for the same scenario annotation (same message, subject andsubject_field: scenarios[].metadata).validate_modelnow reports annotations on the scenarios of each CommandSlice, ReadModelSlice and AutomationSlice member, next to the entity-level annotations.validate_modelreports the annotations of a member once, also when the model lists that member more than once.Test
validate_modelreports twoOPEN_QUESTION_PRESENTfindings for a CommandSlice with an open question on the slice and one on a scenario (metadataandscenarios[].metadata). The scenario finding is equal to the finding thatvalidate_scenariosgives.ASSUMPTION_PRESENT.cargo test -p trogon-atlas-serverandcargo clippy -p trogon-atlas-server --all-targets -- -D warningspass.Closes #92
Need help on this PR? Tag
@codesmith-botwith what you need.