sync email between user and member closes #167 #181
Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
question
S
UX research
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: local-it/mitgliederverwaltung#181
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/email-sync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description of the implemented changes
The changes were:
#167
What has been changed?
Definition of Done
Code Quality
Accessibility
Testing
TODOs
623cc86826to387a627783WIP: sync email between user and member closes #167to sync email between user and member closes #167387a627783todf8cc74d11Complete reference for email behavior between
UserandMemberentities.Where should we document this?
Core Rules
Decision Tree
Sync Triggers
152ca611e7toabe1c96050abe1c96050tod8f3a9ecd4d3b6aeb6f9tod8f3a9ecd4d8f3a9ecd4to259d63b66e259d63b66eto899039b3eeNice work, thanks 💯
@ -0,0 +37,4 @@Updates an email field directly via Ecto within the current transaction.This bypasses Ash's action system to ensure the update happens in thesame database transaction as the parent action.Maybe you can explain that to us a bit in the next weekly :)
In Ash, if you call another Ash action within a
around_transactioncallback, it would run in a separate transaction. This can lead to inconsistencies if, for example, the first action is successful, but the email synchronization fails. By using Ecto directly (Mv.Repo.update()) the update remains in the same transaction as the parent action. If anything fails, the entire transaction is rolled back.