Skip to content

feat: save unit of work changes in command behavior - #22

Merged
PANiXiDA merged 5 commits into
mainfrom
feature/deferred-persistence
Oct 19, 2026
Merged

PANiXiDA merged 5 commits into
mainfrom
feature/deferred-persistence

Conversation

@PANiXiDA

@PANiXiDA PANiXiDA commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Добавляет IUnitOfWork.SaveChangesAsync и SaveChangesBehavior. Успешная команда сохраняет накопленные изменения после сбора доменных событий независимо от наличия активной транзакции. Если транзакция открыта, commit выполняется следующим behavior. При неуспешном результате сохранение пропускается.

Версия пакета остаётся 5.1, зависимость Domain обновлена до опубликованной 4.0.1. Реализации IUnitOfWork должны реализовать SaveChangesAsync. README содержит краткое описание текущего API и порядка behaviors, без инструкций по миграции.

Проверки: restore с опубликованным Domain 4.0.1, форматирование, Release build без предупреждений и 303 успешных теста. Проверены успешные и неуспешные команды с транзакцией и без неё, передача cancellation token, отсутствие вызовов begin/commit из save behavior, исходные ошибки сохранения, конфликты и отмена. Четыре сценария без транзакции падали до исправления проверки HasActiveTransaction и теперь проходят.

Связанные адаптеры: EF #21 и Wolverine #22.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T18:15:24.078342Z 2c79871 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b5c323e1fb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread version.json Resolved
@PANiXiDA

Copy link
Copy Markdown
Contributor Author

@codex

1 similar comment
@PANiXiDA

Copy link
Copy Markdown
Contributor Author

@codex

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 06efc7016e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md Resolved
@PANiXiDA

Copy link
Copy Markdown
Contributor Author

@codex

@panixida-sonarqube

Copy link
Copy Markdown

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 2c79871c8e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@PANiXiDA
PANiXiDA merged commit 312324c into main Oct 19, 2026
8 checks passed
@PANiXiDA
PANiXiDA deleted the feature/deferred-persistence branch October 19, 2026 18:15
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.

2 participants