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: [Mollie] Remove Default Case Handling #4549

Closed
wants to merge 0 commits into from

Conversation

davidkurilla
Copy link

@davidkurilla davidkurilla commented May 3, 2024

Type of Change

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

Description

Refactor mollie connector default match cases. Default match arm now accounts for all enum variants in its case rather than default _ case. This PR closes Issue #4055

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 change refactors the default case handling in the mollie connector of the router crate. This change encourages developers to cover all enum variants rather than rely on default _ case.

How did you test it?

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

@davidkurilla davidkurilla requested a review from a team as a code owner May 3, 2024 19:26
@davidkurilla davidkurilla changed the title [REFACTOR]: [Mollie] Remove Default Case Handling refactor: [Mollie] Remove Default Case Handling May 6, 2024
@SanchithHegde SanchithHegde linked an issue May 6, 2024 that may be closed by this pull request
2 tasks
@SanchithHegde SanchithHegde added A-connector-integration Area: Connector integration S-waiting-on-review Status: This PR has been implemented and needs to be reviewed C-refactor Category: Refactor labels May 6, 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 PR, @davidkurilla!

@SanchithHegde
Copy link
Member

@davidkurilla Could you please address the merge conflicts?

@davidkurilla davidkurilla deleted the refactor-mollie-match branch May 15, 2024 23:36
@SanchithHegde SanchithHegde removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-connector-integration Area: Connector integration C-refactor Category: Refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REFACTOR]: [Mollie] Remove Default Case Handling
4 participants