Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: validate Event() id parameter to prevent silent transition loss#588

Merged
fgmacedo merged 3 commits intodevelopfrom
fix/event-id-validation
Mar 1, 2026
Merged

fix: validate Event() id parameter to prevent silent transition loss#588
fgmacedo merged 3 commits intodevelopfrom
fix/event-id-validation

Conversation

@fgmacedo
Copy link
Owner

@fgmacedo fgmacedo commented Mar 1, 2026

Summary

  • Event(t1, t2) silently interpreted the second transition as the event id, leaving it eventless (auto-firing). Now raises InvalidDefinition with a clear message suggesting the | operator.
  • Adds release notes for 3.1.0.

Passing multiple transitions as positional args to Event() (e.g.,
Event(t1, t2)) caused the second argument to be silently interpreted
as the event id, leaving those transitions eventless (auto-firing).

Now raises InvalidDefinition with a message suggesting the | operator.
@codecov
Copy link

codecov bot commented Mar 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.95%. Comparing base (d1b712d) to head (80d5c90).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #588   +/-   ##
========================================
  Coverage    99.95%   99.95%           
========================================
  Files           34       34           
  Lines         4162     4164    +2     
  Branches       665      666    +1     
========================================
+ Hits          4160     4162    +2     
  Misses           1        1           
  Partials         1        1           
Flag Coverage Δ
unittests 99.95% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 1, 2026

@fgmacedo fgmacedo merged commit cac607a into develop Mar 1, 2026
13 checks passed
@fgmacedo fgmacedo deleted the fix/event-id-validation branch March 1, 2026 17:37
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