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

feat(db): implement DisputeInterface for MockDb #1345

Merged
merged 23 commits into from
Jun 5, 2023

Conversation

Exosyz
Copy link
Contributor

@Exosyz Exosyz commented Jun 3, 2023

Type of Change

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

Description

Additional Changes

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

Motivation and Context

The main motivation is to have MockDb stubs, help to void mocking, and invocation of external database api's.
For more information check #172

Fixes #1190.

How did you test it?

I created a unit test for all implemented methods

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

Exosyz added 21 commits May 22, 2023 22:18
@Exosyz Exosyz requested a review from a team as a code owner June 3, 2023 20:53
@github-actions github-actions bot added the S-conventions-not-followed Status: This PR does not follow contributing guidelines label Jun 3, 2023
@Exosyz Exosyz changed the title Implement DisputeInterface for MockDb feat(router) : implement DisputeInterface for MockDb Jun 4, 2023
@SanchithHegde SanchithHegde added A-framework Area: Framework C-feature Category: Feature request or enhancement S-waiting-on-author Status: This PR is incomplete or needs to address review comments S-needs-conflict-resolution Status: This PR needs conflicts to be resolved by the author labels Jun 4, 2023
@SanchithHegde SanchithHegde changed the title feat(router) : implement DisputeInterface for MockDb feat(db): implement DisputeInterface for MockDb Jun 4, 2023
@github-actions github-actions bot removed the S-conventions-not-followed Status: This PR does not follow contributing guidelines label Jun 4, 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.

Thanks for the PR, @Exosyz! Appreciate the detailed tests!

crates/router/src/db/dispute.rs Outdated Show resolved Hide resolved
crates/router/src/db/dispute.rs Outdated Show resolved Hide resolved
crates/router/src/db/dispute.rs Outdated Show resolved Hide resolved
crates/router/src/db/dispute.rs Outdated Show resolved Hide resolved
crates/router/src/db/dispute.rs Outdated Show resolved Hide resolved
crates/router/src/db/dispute.rs Outdated Show resolved Hide resolved
crates/router/src/db/dispute.rs Show resolved Hide resolved
@SanchithHegde SanchithHegde removed the S-needs-conflict-resolution Status: This PR needs conflicts to be resolved by the author label Jun 4, 2023
@SanchithHegde SanchithHegde added S-waiting-on-review Status: This PR has been implemented and needs to be reviewed and removed S-waiting-on-author Status: This PR is incomplete or needs to address review comments labels Jun 4, 2023
@SanchithHegde SanchithHegde added this pull request to the merge queue Jun 5, 2023
@SanchithHegde SanchithHegde added S-ready-for-merge and removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Jun 5, 2023
Merged via the queue into juspay:main with commit e5e39a7 Jun 5, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-framework Area: Framework C-feature Category: Feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement DisputeInterface for MockDb
3 participants