Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
90bb84c
fix(transactions): prevent nested transaction from destroying outer E…
smarcet Apr 20, 2026
6c59bb0
fix(transactions): harden root/nested split against phantom writes an…
smarcet Jul 10, 2026
ccd1b4f
fix(tx): remove DBAL savepoints, propagate native isRollbackOnly guard
smarcet Jul 10, 2026
4c94a72
test: nested-transaction rollback coverage for SummitOrderService, Su…
smarcet Jul 10, 2026
0558059
test: HTTP-level exception-branch coverage for order/attendee ticket …
smarcet Jul 10, 2026
5f71366
docs(adr): nested transaction rollback safety decision record
smarcet Jul 10, 2026
6451fb1
test: nested-transaction rollback coverage for remaining ADR-003 gaps
smarcet Jul 10, 2026
81fa39f
docs(adr): update nested-tx rollback ADR with remaining test coverage
smarcet Jul 10, 2026
91ab51c
docs(adr): remove docs/plans references from ADR-003
smarcet Jul 10, 2026
7f2589a
chore: add nested-tx rollback test classes to push.yml CI matrix
smarcet Jul 10, 2026
9fb7409
docs(adr): clarify origin/main's actual pre-branch behavior in ADR-003
smarcet Jul 10, 2026
1dd0b88
fix(transactions): never retry ambiguous commits, refuse closed-EM re…
smarcet Jul 10, 2026
28564cc
fix(transactions): discard broken manager/connection when rollback fails
smarcet Jul 10, 2026
42c7ba3
refactor(transactions): deduplicate failure-cleanup paths in Doctrine…
smarcet Jul 10, 2026
0f26919
fix(transactions): surface ambiguous commit failures as AmbiguousComm…
smarcet Jul 10, 2026
c7df4fc
fix(registration): log-and-skip failing rows in CSV ticket data import
smarcet Jul 11, 2026
e30f5b6
fix(transactions): never classify rollback-only commit failures as am…
smarcet Jul 11, 2026
87b61c6
docs(adr): log AmbiguousCommitException consumer wiring as known gap
smarcet Jul 11, 2026
a75ea34
fix(registration): keep import file when a CSV row commit outcome is …
smarcet Jul 11, 2026
ff4c40c
fix(summit): re-fetch summit per row in processEventData CSV import
smarcet Jul 11, 2026
8d730f3
test(imports): volume coverage for every CSV import service method
smarcet Jul 11, 2026
a918235
fix(registration): support guest buyers on the reserve saga
smarcet Jul 11, 2026
a78ed25
test(orders): revive reserve API tests and cover the order cancel end…
smarcet Jul 11, 2026
4f924d1
fix(auth): flush email invalidation before reassigning a colliding email
smarcet Jul 11, 2026
e47de8f
chore(ci): run MemberServiceTest in the integration matrix
smarcet Jul 11, 2026
525a07c
chore(ci): wire Stripe test credentials from repository secrets
smarcet Jul 11, 2026
eca7721
fix(summit): keep import files when a row commit outcome is unknown
smarcet Jul 11, 2026
5b480f6
fix(registration): normalize owner email comparison in ReserveOrderTask
smarcet Jul 11, 2026
b9b84a7
refactor(imports): drop AmbiguousCommitException special-casing from …
smarcet Jul 12, 2026
9f4dd7b
chore(ci): read all Stripe test credentials from repository secrets
smarcet Jul 12, 2026
8f89a2e
test(payments): keep Stripe webhook creation out of CI runs
smarcet Jul 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ jobs:
- { name: "SummitOrderServiceTest", filter: "--filter SummitOrderServiceTest" }
- { name: "SummitRSVPServiceTest", filter: "--filter SummitRSVPServiceTest" }
- { name: "SummitRSVPInvitationServiceTest", filter: "--filter SummitRSVPInvitationServiceTest" }
- { name: "SummitServiceTest", filter: "--filter SummitServiceTest" }
- { name: "SpeakerServiceRegistrationTest", filter: "--filter SpeakerServiceRegistrationTest" }
- { name: "PresentationServiceTest", filter: "--filter PresentationServiceTest" }
- { name: "SummitPromoCodeServiceTest", filter: "--filter SummitPromoCodeServiceTest" }
- { name: "SummitScheduleSettingsServiceTest", filter: "--filter SummitScheduleSettingsServiceTest" }
- { name: "SummitSelectedPresentationListServiceTest", filter: "--filter SummitSelectedPresentationListServiceTest" }
- { name: "SelectionPlanOrderExtraQuestionTypeServiceTest", filter: "--filter SelectionPlanOrderExtraQuestionTypeServiceTest" }
- { name: "SummitSelectionPlanServiceTest", filter: "--filter SummitSelectionPlanServiceTest" }
- { name: "SummitRegistrationInvitationServiceTest", filter: "--filter SummitRegistrationInvitationServiceTest" }
- { name: "SummitSubmissionInvitationServiceTest", filter: "--filter SummitSubmissionInvitationServiceTest" }
- { name: "MemberServiceTest", filter: "--filter MemberServiceTest" }
- { name: "EntityModelUnitTests", filter: "tests/Unit/Entities/" }
- { name: "AuditUnitTests", filter: "tests/Unit/Audit/" }
- { name: "AuditOtlpStrategyTest", filter: "--filter AuditOtlpStrategyTest" }
Expand Down Expand Up @@ -101,17 +112,19 @@ jobs:
REGISTRATION_DEFAULT_LIVE_STRIPE_PRIVATE_KEY:
REGISTRATION_DEFAULT_LIVE_STRIPE_PUBLISHABLE_KEY:
REGISTRATION_DEFAULT_LIVE_WEBHOOK_SECRET:
REGISTRATION_DEFAULT_TEST_STRIPE_PRIVATE_KEY: sk_test_12345
REGISTRATION_DEFAULT_TEST_STRIPE_PUBLISHABLE_KEY: pk_12345
REGISTRATION_DEFAULT_TEST_WEBHOOK_SECRET: whsec_12345
REGISTRATION_DEFAULT_TEST_STRIPE_PRIVATE_KEY: ${{ secrets.TEST_STRIPE_SECRET_KEY || 'sk_test_12345' }}
REGISTRATION_DEFAULT_TEST_STRIPE_PUBLISHABLE_KEY: ${{ secrets.TEST_STRIPE_PUBLISHABLE_KEY || 'pk_12345' }}
REGISTRATION_DEFAULT_TEST_WEBHOOK_SECRET: ${{ secrets.TEST_STRIPE_WEBHOOK_SECRET || 'whsec_12345' }}
TEST_STRIPE_SECRET_KEY: ${{ secrets.TEST_STRIPE_SECRET_KEY || 'sk_test_dummy_key' }}
TEST_STRIPE_PUBLISHABLE_KEY: ${{ secrets.TEST_STRIPE_PUBLISHABLE_KEY || 'pk_test_dummy_key' }}
BOOKABLE_ROOMS_DEFAULT_PAYMENT_PROVIDER: Stripe
BOOKABLE_ROOMS_DEFAULT_STRIPE_TEST_MODE: true
BOOKABLE_ROOMS_DEFAULT_LIVE_STRIPE_PRIVATE_KEY:
BOOKABLE_ROOMS_DEFAULT_LIVE_STRIPE_PUBLISHABLE_KEY:
BOOKABLE_ROOMS_DEFAULT_LIVE_WEBHOOK_SECRET:
BOOKABLE_ROOMS_DEFAULT_TEST_STRIPE_PRIVATE_KEY: sk_test_12345
BOOKABLE_ROOMS_DEFAULT_TEST_STRIPE_PUBLISHABLE_KEY: pk_12345
BOOKABLE_ROOMS_DEFAULT_TEST_WEBHOOK_SECRET: whsec_12345
BOOKABLE_ROOMS_DEFAULT_TEST_STRIPE_PRIVATE_KEY: ${{ secrets.TEST_STRIPE_SECRET_KEY || 'sk_test_12345' }}
BOOKABLE_ROOMS_DEFAULT_TEST_STRIPE_PUBLISHABLE_KEY: ${{ secrets.TEST_STRIPE_PUBLISHABLE_KEY || 'pk_12345' }}
BOOKABLE_ROOMS_DEFAULT_TEST_WEBHOOK_SECRET: ${{ secrets.TEST_STRIPE_WEBHOOK_SECRET || 'whsec_12345' }}
REGISTRATION_VALIDATE_TICKET_TYPE_REMOVAL: false
MEMCACHED_SERVER_HOST: 127.0.0.1
MEMCACHED_SERVER_PORT: 11211
Expand Down
399 changes: 399 additions & 0 deletions adr/003-nested-transaction-rollback-safety.md

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions app/Models/Foundation/Main/Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ public function setTeamMemberships($team_memberships)
public function setGroups($groups)
{
$this->groups = $groups;
$this->groupMembershipCache = [];
}

/**
Expand Down Expand Up @@ -2059,6 +2060,7 @@ public function getMembershipType(): ?string

public function clearGroups():void{
$this->groups->clear();
$this->groupMembershipCache = [];
}
/**
* @param Group $group
Expand All @@ -2067,13 +2069,17 @@ public function add2Group(Group $group)
{
if ($this->groups->contains($group)) return;
$this->groups->add($group);
// belongsToGroup() memoizes per instance against the DB; a mutation makes
// that memo stale (the fresh row/removal becomes visible after flush).
$this->groupMembershipCache = [];
}

public function removeFromGroup(Group $group)
{
if (!$this->groups->contains($group)) return;
$this->groups->removeElement($group);
//$group->removeMember($this);
$this->groupMembershipCache = [];
}

/**
Expand Down
7 changes: 7 additions & 0 deletions app/Models/OAuth2/ResourceServerContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,13 @@ private function syncMemberFields(Member $member, ?string $user_email, ?string $
$member_by_email->getId()
));
$member_by_email->setEmail(sprintf("%s-invalid@invalid", $member_by_email->getId()));
// Member.Email is unique: flush the invalidation NOW, inside the still-open
// transaction, so the resolved member's own email UPDATE below can never be
// ordered first by the UnitOfWork and hit the unique index while the former
// owner still holds the email. Rolled back with the transaction if anything
// later fails. Same flush-now idiom as MemberService::registerExternalUser's
// twin guard (add($entity, true)).
$this->member_repository->add($member_by_email, true);
}
$member->setEmail($user_email);
}
Expand Down
Loading
Loading