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(payments_start): remove redundant call to fetch payment method data #1574

Merged
merged 4 commits into from
Jul 3, 2023

Conversation

shreyash-Pandey-Katni
Copy link
Contributor

@shreyash-Pandey-Katni shreyash-Pandey-Katni commented Jun 30, 2023

Type of Change

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

Description

This pull request removes the unnecessary call to fetch payment method data in the payments_start operation of the PaymentStart implementation. The payment method data fetch adds additional latency to the payments flow without being required in this particular flow.
Fixes #1327

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?

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

@shreyash-Pandey-Katni shreyash-Pandey-Katni requested a review from a team as a code owner June 30, 2023 13:59
@github-actions github-actions bot added the S-conventions-not-followed Status: This PR does not follow contributing guidelines label Jun 30, 2023
@SanchithHegde SanchithHegde changed the title changes done refactor(payments_start): remove redundant call to fetch payment method data Jun 30, 2023
@github-actions github-actions bot removed the S-conventions-not-followed Status: This PR does not follow contributing guidelines label Jun 30, 2023
@SanchithHegde SanchithHegde added A-core Area: Core flows S-waiting-on-review Status: This PR has been implemented and needs to be reviewed C-refactor Category: Refactor S-conventions-not-followed Status: This PR does not follow contributing guidelines labels Jun 30, 2023
@Narayanbhat166
Copy link
Member

Thanks for the PR. Are you not able to install nightly fmt? can you share the error that you are facing?

@github-actions github-actions bot removed the S-conventions-not-followed Status: This PR does not follow contributing guidelines label Jun 30, 2023
@shreyash-Pandey-Katni
Copy link
Contributor Author

I finally managed to solve it with the help of my friend. Thank you

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.

Other than that, looks good to me! Could you also please address the failing CI checks?

Thanks for the PR, @shreyash-Pandey-Katni!

@jarnura jarnura added this pull request to the merge queue Jul 3, 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 Jul 3, 2023
@jarnura jarnura added this to the June 2023 Release milestone Jul 3, 2023
Merged via the queue into juspay:main with commit 6dd61b6 Jul 3, 2023
6 checks passed
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
No open projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

[REFACTOR] remove redundant call to fetch payment method data
4 participants