Skip to content

feat(command): add commandWaitId support #1828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2025
Merged

feat(command): add commandWaitId support #1828

merged 1 commit into from
Aug 5, 2025

Conversation

Ahoo-Wang
Copy link
Owner

  • Add CommandWaitIdCapable interface to CommandResult
  • Update CommandMessage to include commandWaitId in sentSignal
  • Modify sendAndWait methods to accept commandWaitId parameter
  • Update CommandWaitNotifier to use commandWaitId for local command check
  • Adjust CommandWaitStrategyRegistrar to use commandWaitId for registration
  • Update WaitingForStage to include commandWaitId in materialized form
  • Modify related tests to accommodate new commandWaitId functionality

- Add CommandWaitIdCapable interface to CommandResult
- Update CommandMessage to include commandWaitId in sentSignal
- Modify sendAndWait methods to accept commandWaitId parameter
- Update CommandWaitNotifier to use commandWaitId for local command check
- Adjust CommandWaitStrategyRegistrar to use commandWaitId for registration
- Update WaitingForStage to include commandWaitId in materialized form
- Modify related tests to accommodate new commandWaitId functionality

Signed-off-by: Ahoo Wang <ahoowang@qq.com>
@Ahoo-Wang Ahoo-Wang added the enhancement New feature or request label Aug 5, 2025
Copy link
Contributor

github-actions bot commented Aug 5, 2025

Test Results

1 475 tests  ±0   1 458 ✅ ±0   11m 55s ⏱️ -20s
  369 suites ±0      17 💤 ±0 
  369 files   ±0       0 ❌ ±0 

Results for commit 1d067a7. ± Comparison against base commit 241ac76.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Aug 5, 2025

Codecov Report

❌ Patch coverage is 87.65432% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.11%. Comparing base (241ac76) to head (1d067a7).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...in/me/ahoo/wow/command/wait/CommandWaitNotifier.kt 42.85% 1 Missing and 3 partials ⚠️
.../me/ahoo/wow/command/wait/stage/WaitingForStage.kt 88.88% 4 Missing ⚠️
.../main/kotlin/me/ahoo/wow/command/CommandGateway.kt 87.50% 1 Missing ⚠️
...o/wow/webflux/wait/WebClientCommandWaitNotifier.kt 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1828      +/-   ##
============================================
- Coverage     91.23%   91.11%   -0.13%     
- Complexity     3716     3720       +4     
============================================
  Files           702      702              
  Lines         12827    12866      +39     
  Branches        817      818       +1     
============================================
+ Hits          11703    11723      +20     
- Misses          737      752      +15     
- Partials        387      391       +4     
Flag Coverage Δ
unittests 91.11% <87.65%> (-0.13%) ⬇️

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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Ahoo-Wang Ahoo-Wang merged commit 3e18a6a into main Aug 5, 2025
33 checks passed
@Ahoo-Wang Ahoo-Wang deleted the commandWaitId branch August 5, 2025 03:48
Ahoo-Wang added a commit that referenced this pull request Aug 5, 2025
Ahoo-Wang added a commit that referenced this pull request Aug 5, 2025
Ahoo-Wang added a commit that referenced this pull request Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant