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
691bea4
fix(transactions): prevent nested transaction from destroying outer E…
smarcet Apr 20, 2026
e055be1
fix(transactions): harden root/nested split against phantom writes an…
smarcet Jul 10, 2026
a8e421f
fix(tx): remove DBAL savepoints, propagate native isRollbackOnly guard
smarcet Jul 10, 2026
70935c7
test: nested-transaction rollback coverage for SummitOrderService, Su…
smarcet Jul 10, 2026
e934962
test: HTTP-level exception-branch coverage for order/attendee ticket …
smarcet Jul 10, 2026
2e38647
docs(adr): nested transaction rollback safety decision record
smarcet Jul 10, 2026
faa3785
test: nested-transaction rollback coverage for remaining ADR-003 gaps
smarcet Jul 10, 2026
7ddc4a9
docs(adr): update nested-tx rollback ADR with remaining test coverage
smarcet Jul 10, 2026
db653d9
docs(adr): remove docs/plans references from ADR-003
smarcet Jul 10, 2026
b0a414b
chore: add nested-tx rollback test classes to push.yml CI matrix
smarcet Jul 10, 2026
d4e35d6
docs(adr): clarify origin/main's actual pre-branch behavior in ADR-003
smarcet Jul 10, 2026
bd2f719
fix(transactions): never retry ambiguous commits, refuse closed-EM re…
smarcet Jul 10, 2026
f25891b
fix(transactions): discard broken manager/connection when rollback fails
smarcet Jul 10, 2026
a80493b
refactor(transactions): deduplicate failure-cleanup paths in Doctrine…
smarcet Jul 10, 2026
4001be8
fix(transactions): surface ambiguous commit failures as AmbiguousComm…
smarcet Jul 10, 2026
bc1200a
fix(registration): log-and-skip failing rows in CSV ticket data import
smarcet Jul 11, 2026
698bc4b
fix(transactions): never classify rollback-only commit failures as am…
smarcet Jul 11, 2026
ee2b42c
docs(adr): log AmbiguousCommitException consumer wiring as known gap
smarcet Jul 11, 2026
2b93a38
fix(registration): keep import file when a CSV row commit outcome is …
smarcet Jul 11, 2026
794cc7d
fix(summit): re-fetch summit per row in processEventData CSV import
smarcet Jul 11, 2026
f5acb70
test(imports): volume coverage for every CSV import service method
smarcet Jul 11, 2026
b9e8973
fix(registration): support guest buyers on the reserve saga
smarcet Jul 11, 2026
dc77710
test(orders): revive reserve API tests and cover the order cancel end…
smarcet Jul 11, 2026
bf4d9cd
fix(auth): flush email invalidation before reassigning a colliding email
smarcet Jul 11, 2026
6b5ecd2
chore(ci): run MemberServiceTest in the integration matrix
smarcet Jul 11, 2026
5f13f5c
chore(ci): wire Stripe test credentials from repository secrets
smarcet Jul 11, 2026
daf68e1
fix(summit): keep import files when a row commit outcome is unknown
smarcet Jul 11, 2026
a9def22
fix(registration): normalize owner email comparison in ReserveOrderTask
smarcet Jul 11, 2026
db431c3
refactor(imports): drop AmbiguousCommitException special-casing from …
smarcet Jul 12, 2026
f67515e
chore(ci): read all Stripe test credentials from repository secrets
smarcet Jul 12, 2026
4ae6664
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