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 how payment instruments are updated #684

Closed
wants to merge 1 commit into from

Conversation

DeeTheDev
Copy link
Collaborator

Fixes #312

Instead of relying on current_member_header for exposing payment instruments, create API's that fetchs the instrument(s) when the appropriate page is loaded. Otherwise current_member_header could possibly hold large payment instrument data.

  • Remove dependency of add_current_member_header (payment instruments can contain large data)
  • Only fetch instruments when we're in the Funding page
  • Only fetch instrument when we are adding funds to it
  • Test api changes
  • Test frontend checkout card adding

Instead of relying on current_member_header for exposing payment
instruments, create API's that fetchs the instrument(s) when the
appropriate page is loaded. Otherwise current_member_header could
possibly hold large payment instrument data.

- Remove dependency of `add_current_member_header` (payment instruments
  can contain large data)
- Only fetch instruments when we're in the `Funding` page
- Only fetch instrument when we are adding funds to it
- Test api changes
- Test frontend checkout card adding
@DeeTheDev DeeTheDev added backend Involves changes to the backend API webapp Public frontend changes labels Aug 19, 2024
@DeeTheDev DeeTheDev self-assigned this Aug 19, 2024
Copy link

codecov bot commented Aug 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.93%. Comparing base (08f6e16) to head (f221e85).
Report is 16 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #684   +/-   ##
=======================================
  Coverage   97.93%   97.93%           
=======================================
  Files         444      444           
  Lines       20154    20174   +20     
=======================================
+ Hits        19738    19758   +20     
  Misses        416      416           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rgalanakis
Copy link
Member

As discussed during pairing, this isn't a suitable solution for the problem.

@rgalanakis rgalanakis closed this Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Involves changes to the backend API webapp Public frontend changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean up how payment instruments are updated
2 participants