Skip to content

Conversation

@philipliu
Copy link
Contributor

What

[TODO: Brief description of the changes]

Why

[TODO: Why this change is being made. Include any context required to understand the why.]

Known limitations

[TODO or N/A]

Checklist

  • Title follows SDP-1234: Add new feature or Chore: Refactor package xyz format. The Jira ticket code was included if available.
  • PR has a focused scope and doesn't mix features with refactoring
  • Tests are included (if applicable)
  • CHANGELOG.md is updated (if applicable)
  • CONFIG/SECRETS changes are updated in helmcharts and deployments (if applicable)
  • Preview deployment works as expected
  • Ready for production

@philipliu philipliu had a problem deploying to Anchor Integration Tests December 2, 2025 22:37 — with GitHub Actions Failure
@philipliu philipliu had a problem deploying to Receiver Registration - E2E Integration Tests (Stellar) December 2, 2025 22:37 — with GitHub Actions Failure
@philipliu philipliu marked this pull request as ready for review December 2, 2025 22:38
Copilot AI review requested due to automatic review settings December 2, 2025 22:38
@stellar-jenkins
Copy link

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR disables automatic invitation retries for existing receiver wallets during multiple disbursement processing, while preserving the manual retry functionality through API endpoints. The change prevents the system from automatically resending invitations when processing the same receivers across multiple disbursements.

Key Changes

  • Removed automatic RetryInvitationMessage call in processReceiverWallets for existing receiver wallets
  • Added explanatory comment documenting the behavioral change
  • Manual retry functionality remains available via HTTP endpoints and embedded wallet service

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 380 to 382
} else {
_, retryErr := di.receiverWalletModel.RetryInvitationMessage(ctx, dbTx, receiverWalletID)
if retryErr != nil {
if !errors.Is(retryErr, ErrRecordNotFound) {
return nil, fmt.Errorf("retrying invitation: %w", retryErr)
}
}
// Do not resend invitation if the receiver wallet already exists
}
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

The test "success - existing receiver wallet" in disbursement_instructions_test.go (lines 423-531) will fail after this change. The test sets invitation_sent_at = NOW() and then expects it to be reset to nil after calling ProcessAll again (see assertion at line 523). Since the retry invitation logic has been removed, this test needs to be updated to reflect the new behavior where invitation_sent_at should remain set (not be reset to nil) when processing the same receivers again.

Copilot uses AI. Check for mistakes.
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.

3 participants