Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(connector): add config cleanup on payment connector deletion #5998

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

noagbmn
Copy link
Contributor

@noagbmn noagbmn commented Sep 23, 2024

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Fixes #5966 (in both v1 and v2). Now the router cleans up the configs table (or business_profile in v2) when a connector is deleted.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Added a payment and payout processor, checked if values are present in config, deleted and rechecked.
v1:
v1test

v2:
v2test

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@noagbmn noagbmn requested review from a team as code owners September 23, 2024 13:34
Copy link

semanticdiff-com bot commented Sep 23, 2024

Review changes with  SemanticDiff

Changed Files
File Status
  crates/common_enums/src/enums.rs  0% smaller
  crates/router/src/core/admin.rs  0% smaller

@noagbmn
Copy link
Contributor Author

noagbmn commented Oct 1, 2024

@SanchithHegde Hi, is this PR going to get reviewed? The issue also didn't get labeled

@SanchithHegde SanchithHegde added C-bug Category: Bug A-routing Area: Routing labels Oct 1, 2024
@noagbmn
Copy link
Contributor Author

noagbmn commented Oct 7, 2024

@Aprabhat19 Hi again! Re-requested your review

Aprabhat19
Aprabhat19 previously approved these changes Oct 8, 2024
@noagbmn
Copy link
Contributor Author

noagbmn commented Oct 11, 2024

@SanchithHegde Hi sorry can we get a second reviewer?

SanchithHegde
SanchithHegde previously approved these changes Nov 27, 2024
Copy link
Member

@SanchithHegde SanchithHegde left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Thanks for the contribution, and apologies for the delay!

@noagbmn noagbmn dismissed stale reviews from SanchithHegde and Aprabhat19 via 817dc6a December 3, 2024 12:28
@noagbmn noagbmn force-pushed the fix_delete_merchant_connector_account_from_config branch from 817dc6a to 0c4b1bd Compare December 3, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-routing Area: Routing C-bug Category: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Bug in merchant connector account create - delete flows
4 participants