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
6634dbb
fix(transactions): prevent nested transaction from destroying outer E…
smarcet Apr 20, 2026
c14e397
fix(transactions): harden root/nested split against phantom writes an…
smarcet Jul 10, 2026
4ff61ad
fix(tx): remove DBAL savepoints, propagate native isRollbackOnly guard
smarcet Jul 10, 2026
eb2dbe4
test: nested-transaction rollback coverage for SummitOrderService, Su…
smarcet Jul 10, 2026
809e306
test: HTTP-level exception-branch coverage for order/attendee ticket …
smarcet Jul 10, 2026
57ce73d
docs(adr): nested transaction rollback safety decision record
smarcet Jul 10, 2026
3faf176
test: nested-transaction rollback coverage for remaining ADR-003 gaps
smarcet Jul 10, 2026
a609c3b
docs(adr): update nested-tx rollback ADR with remaining test coverage
smarcet Jul 10, 2026
f4e31bd
docs(adr): remove docs/plans references from ADR-003
smarcet Jul 10, 2026
b0e6549
chore: add nested-tx rollback test classes to push.yml CI matrix
smarcet Jul 10, 2026
e903bcd
docs(adr): clarify origin/main's actual pre-branch behavior in ADR-003
smarcet Jul 10, 2026
5e56125
fix(transactions): never retry ambiguous commits, refuse closed-EM re…
smarcet Jul 10, 2026
f7e15d2
fix(transactions): discard broken manager/connection when rollback fails
smarcet Jul 10, 2026
f4fba96
refactor(transactions): deduplicate failure-cleanup paths in Doctrine…
smarcet Jul 10, 2026
e0ac330
fix(transactions): surface ambiguous commit failures as AmbiguousComm…
smarcet Jul 10, 2026
57fc004
fix(registration): log-and-skip failing rows in CSV ticket data import
smarcet Jul 11, 2026
b3601e6
fix(transactions): never classify rollback-only commit failures as am…
smarcet Jul 11, 2026
0fa2719
docs(adr): log AmbiguousCommitException consumer wiring as known gap
smarcet Jul 11, 2026
271064d
fix(registration): keep import file when a CSV row commit outcome is …
smarcet Jul 11, 2026
4b6664e
fix(summit): re-fetch summit per row in processEventData CSV import
smarcet Jul 11, 2026
24414df
test(imports): volume coverage for every CSV import service method
smarcet Jul 11, 2026
096d7b8
fix(registration): support guest buyers on the reserve saga
smarcet Jul 11, 2026
80b7379
test(orders): revive reserve API tests and cover the order cancel end…
smarcet Jul 11, 2026
a54fe99
fix(auth): flush email invalidation before reassigning a colliding email
smarcet Jul 11, 2026
a2ba8f8
chore(ci): run MemberServiceTest in the integration matrix
smarcet Jul 11, 2026
b526375
chore(ci): wire Stripe test credentials from repository secrets
smarcet Jul 11, 2026
884dc2a
fix(summit): keep import files when a row commit outcome is unknown
smarcet Jul 11, 2026
a85c059
fix(registration): normalize owner email comparison in ReserveOrderTask
smarcet Jul 11, 2026
f13115d
refactor(imports): drop AmbiguousCommitException special-casing from …
smarcet Jul 12, 2026
25c9115
chore(ci): read all Stripe test credentials from repository secrets
smarcet Jul 12, 2026
cb6f67a
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