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

refactor(router): add the connector_label field to DuplicateMerchantConnectorAccount error message #1044

Merged
merged 2 commits into from
May 4, 2023
Merged

refactor(router): add the connector_label field to DuplicateMerchantConnectorAccount error message #1044

merged 2 commits into from
May 4, 2023

Conversation

EliKalter
Copy link
Contributor

@EliKalter EliKalter commented May 3, 2023

Type of Change

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

Description

This PR adds the connector_label to the message of the DuplicateMerchantConnectorAccount variant in the ApiErrorResponse enum

Additional Changes

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

Motivation and Context

This resolves #899,
The connector_label is created by Hyperswitch internally hence it is necessary to send back the connector_label is the error response so that the user has an idea of what the connector_label is.

How did you test it?

Checklist

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

@EliKalter EliKalter requested review from a team as code owners May 3, 2023 18:07
@EliKalter EliKalter closed this May 3, 2023
@SanchithHegde SanchithHegde reopened this May 3, 2023
@SanchithHegde SanchithHegde added A-core Area: Core flows S-in-progress Status: Implementation is underway C-refactor Category: Refactor labels May 3, 2023
@EliKalter EliKalter changed the title Fixed issue 899 Fixed issue #899 May 3, 2023
@SanchithHegde SanchithHegde added S-waiting-on-review Status: This PR has been implemented and needs to be reviewed and removed S-in-progress Status: Implementation is underway labels May 3, 2023
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!

@EliKalter EliKalter changed the title Fixed issue #899 Refactor (router): Add the connector_label to DuplicateMerchantConnectorAccount error message. Fixes #899 May 4, 2023
Copy link
Contributor

@Abhicodes-crypto Abhicodes-crypto left a comment

Choose a reason for hiding this comment

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

LGTM

@SanchithHegde SanchithHegde changed the title Refactor (router): Add the connector_label to DuplicateMerchantConnectorAccount error message. Fixes #899 refactor(router): add the connector_label field to DuplicateMerchantConnectorAccount error message May 4, 2023
@jarnura jarnura added S-ready-for-merge and removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels May 4, 2023
Copy link
Member

@Narayanbhat166 Narayanbhat166 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. Thanks for the contribution @EliKalter. You can also add this field to MerchantConnectorNotFound error message.

MerchantConnectorAccountNotFound,

If interested, please create an issue and take it up in a separate PR.

Cheers.

@EliKalter
Copy link
Contributor Author

Looks Good. Thanks for the contribution @EliKalter. You can also add this field to MerchantConnectorNotFound error message.

MerchantConnectorAccountNotFound,

If interested, please create an issue and take it up in a separate PR.

Cheers.

I'll do it.

@jarnura jarnura added this pull request to the merge queue May 4, 2023
Merged via the queue into juspay:main with commit b3772f8 May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core flows C-refactor Category: Refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Add connector_label field in error type
5 participants