Skip to content

fix: make take snapshot sync call - #20

Merged
yordis merged 51 commits into
mainfrom
sync-up
Aug 24, 2025
Merged

yordis merged 51 commits into
mainfrom
sync-up

Conversation

@yordis

@yordis yordis commented Aug 24, 2025 •

Copy link
Copy Markdown
Member

No description provided.

cdegroot and others added 30 commits February 15, 2024 14:56
1. devbox init
2. devbox add elixir@1.16.3
3. use direnv for loading devbox env

There is a .tool-versions but we got rid of asdf from our dev machines so setting this up instead in order to avoid each of us from having to setup asdf up on our machines again.
Co-authored-by: Cees de Groot <cg@cdegroot.com>
Skeleton code for batched handling, to be tested

Basic skeleton test

Ensure that no conflicting options/handlers are configured

Move the module compilation test into describe block

Add code to do error handling on batches (untested)

Add tests for batching error handling

Allow ack_events to take a list of events and acknowledge last event

batch handler telemetry

error handling fixes

Update support batch handler logic

Add batch handler telemetry tests

Align naming of batch handler test module

Update retry logic

Update tests

Add configuration test for ensuring batch_size and concurrency not test at same time

Fix handle_batch comparison and add test case

Add tests for handle_batch state and update last_event_seen logic

Remove list implementation for InMemory#ack_event/3

Minor update for event_handler_batch_state_test

Document handle_batch/2 for state update

Add more event handler test coverage

- upcast test for handle_batch/2
- batch_reset_event_handler_test

Do not retry if :skip is received

Commanded.options() -> Commanded.Application.options()

Allow skipping events for batched handler

Include #493 and #489 in CHANGELOG

Include #493 and #489 in CHANGELOG

Release v1.4.0

bugfix: retry command executing when the aggregator is down right before the execution

chore: improve typespec for router dispatch resp

Include #494 in CHANGELOG

Remove duplicate event apply when receiving missed events published to aggregate's event stream

Update CHANGELOG

Use Erlang v25.0.4 and Elixir v1.14.0-otp-25

Require at least Elixir v1.10

Fix typespec typo in Commanded.Application

Use `:test` Mix env for GitHub workflow

To catch dialyzer and credo errors in test files.

Release v1.4.1

retry remaining batch when skipping event

only retry for batch

Reduce compile-time dependencies

Reformat

Cleanup some TODO comments that have been implemented

Remove unused code in test

Make Credo happy

Update docs for :skip return in error callback

Filter any already seen events from handle_batch

Update docs on event given to batch error hander
Format

Fix dialyzer error
* Pull in initial work by @davydog187.

* Redefine how acknowledgement works

Skeleton code for batched handling, to be tested

Basic skeleton test

Ensure that no conflicting options/handlers are configured

Move the module compilation test into describe block

Add code to do error handling on batches (untested)

Add tests for batching error handling

Allow ack_events to take a list of events and acknowledge last event

batch handler telemetry

error handling fixes

Update support batch handler logic

Add batch handler telemetry tests

Align naming of batch handler test module

Update retry logic

Update tests

Add configuration test for ensuring batch_size and concurrency not test at same time

Fix handle_batch comparison and add test case

Add tests for handle_batch state and update last_event_seen logic

Remove list implementation for InMemory#ack_event/3

Minor update for event_handler_batch_state_test

Document handle_batch/2 for state update

Add more event handler test coverage

- upcast test for handle_batch/2
- batch_reset_event_handler_test

Do not retry if :skip is received

Commanded.options() -> Commanded.Application.options()

Allow skipping events for batched handler

Include #493 and #489 in CHANGELOG

Include #493 and #489 in CHANGELOG

Release v1.4.0

bugfix: retry command executing when the aggregator is down right before the execution

chore: improve typespec for router dispatch resp

Include #494 in CHANGELOG

Remove duplicate event apply when receiving missed events published to aggregate's event stream

Update CHANGELOG

Use Erlang v25.0.4 and Elixir v1.14.0-otp-25

Require at least Elixir v1.10

Fix typespec typo in Commanded.Application

Use `:test` Mix env for GitHub workflow

To catch dialyzer and credo errors in test files.

Release v1.4.1

retry remaining batch when skipping event

only retry for batch

Reduce compile-time dependencies

Reformat

Cleanup some TODO comments that have been implemented

Remove unused code in test

Make Credo happy

Update docs for :skip return in error callback

Filter any already seen events from handle_batch

Update docs on event given to batch error hander

* Drop support for {:error, reason, event}

Format

Fix dialyzer error

* Update docs

* Use delegate_event_to_handler & make confirm_receipt be more generic

* Do not retry :skip events

---------

Co-authored-by: Dave Lucia <davelucianyc@gmail.com>
Co-authored-by: Cees de Groot <cg@evrl.com>
Sync commanded to latest version
…igate-aggregate_execution_timeout-error-part-2

Put telemetry on dehydration
Update with latest master
This reverts commit b750116.
Update with latest master
@coderabbitai

coderabbitai Bot commented Aug 24, 2025 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 437287f and 4b828a3.

📒 Files selected for processing (5)
  • lib/commanded/aggregates/aggregate.ex (5 hunks)
  • lib/commanded/commands/dispatcher.ex (1 hunks)
  • test/application/application_supervisor_test.exs (1 hunks)
  • test/event/event_handler_batch_telemetry_test.exs (1 hunks)
  • test/event/handler_init_test.exs (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch sync-up

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@yordis
yordis marked this pull request as ready for review August 24, 2025 19:42
@yordis yordis changed the title sync up fix: make take snapshot sync call Aug 24, 2025
@yordis
yordis enabled auto-merge (squash) August 24, 2025 19:43
@yordis
yordis disabled auto-merge August 24, 2025 19:43
@yordis
yordis merged commit 57d0b6a into main Aug 24, 2025
0 of 8 checks passed
@yordis
yordis deleted the sync-up branch August 24, 2025 19:43
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.

9 participants