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

Reduce carts post requests #7019

Merged

Conversation

mds1
Copy link
Contributor

@mds1 mds1 commented Jun 30, 2020

Closes #7002

Changes/notes:

  1. New endpoint of /grants/bulk-fund
  2. Similar API to the original /grant_id/grant_slug/fund endpoint. The difference is that now the payload expects arrays of data for the object fields that differ for each donation.
  3. Like before, when the postToDatabase() function of cart.js sends the POST request, it does not wait for the response before proceeding
  4. perftools.models.JSONStore is used to save the POST payload before any processing happens

cc @owocki @apbendi

@mds1 mds1 marked this pull request as draft June 30, 2020 14:36
@mds1 mds1 force-pushed the reduce-carts-post-requests branch from 04cfd9a to 812b3d8 Compare June 30, 2020 16:45
@mds1 mds1 marked this pull request as ready for review June 30, 2020 16:47
@mds1
Copy link
Contributor Author

mds1 commented Jun 30, 2020

Updated to store off the payload before any processing happens, so this is now ready for review

@thelostone-mc thelostone-mc changed the base branch from stable to master July 1, 2020 14:21
@danlipert
Copy link
Contributor

@mds1 looks good but Travis is failing - can you rebase against the latest master so we can re-trigger Travis since it was against stable previously - thanks!

@mds1 mds1 force-pushed the reduce-carts-post-requests branch from 812b3d8 to c50195a Compare July 1, 2020 16:39
@mds1
Copy link
Contributor Author

mds1 commented Jul 1, 2020

@danlipert Should be all set now!

@thelostone-mc thelostone-mc merged commit e0404a8 into gitcoinco:master Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make ONE post per grants checkout instead of N where N is the number of cart items
4 participants