Skip to content
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

Async server bug fixes and general enhancements #406

Merged
merged 12 commits into from
May 7, 2024

Conversation

subhashb
Copy link
Contributor

@subhashb subhashb commented May 3, 2024

Bug fixes and general enhancements to Engine and Subscription

  • Update read position before shutting down subscriptions
  • Stop server processing on exceptions
  • Allow overriding exception handling in the handle_error method in Command and Event handlers
  • Associate exit_code with engine run
  • Add comprehensive test cases
  • Add documentation and comments

This PR also has changes to:

@subhashb subhashb self-assigned this May 3, 2024
subhashb added 8 commits May 3, 2024 15:17
Custom validators in VOs were not being fired because Protean was
only firing validators at the Entity's field level. This change
ensures custom validators inside the VO, which are one level deeper,
are also fired.
Value Objects do not have identifiable features, so should not have
fields that indicate uniqueness like `unique` or `identifier` flags.
Value objects should not be editable. This commit ensures that VOs cannot
be updated once initialized, but aggregates/entities can switch VOs
when they want to perform changes.
@subhashb subhashb merged commit 4d9929a into main May 7, 2024
4 checks passed
@subhashb subhashb deleted the async-server-bug-fixes-and-enhancements branch May 7, 2024 15:44
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