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 api calls in middlewares - Closes #770 #882

Merged
merged 4 commits into from
Jun 18, 2018

Conversation

ginacontrino
Copy link
Contributor

@ginacontrino ginacontrino commented Jun 5, 2018

What was the problem?

There were api calls in the account middleware and some transaction actions and api calls in the account actions that didnt belong in there

How did I fix it?

Moved transaction related api calls to src/utils/api/transactions.js and actions to src/actions/transactions.js
And transformed further direct api calls in the account middleware into actions in src/actions/account.js

Adjusted all tests

How to test it?

Everything should work exactly like before - be careful testing the tests as well

Review checklist

@ginacontrino ginacontrino self-assigned this Jun 5, 2018
@ginacontrino ginacontrino force-pushed the 770-middleware-api-requests-refactor branch from a619991 to ea6dca2 Compare June 8, 2018 07:59
@slaweet slaweet changed the base branch from 0.9.0 to 0.10.0 June 8, 2018 13:32
@ginacontrino ginacontrino force-pushed the 770-middleware-api-requests-refactor branch 2 times, most recently from 8624d97 to c74672e Compare June 11, 2018 13:49
@ginacontrino ginacontrino force-pushed the 770-middleware-api-requests-refactor branch from 01e741f to 41319a9 Compare June 11, 2018 15:45
Copy link
Contributor

@reyraa reyraa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Gina. This is a great piece of work!

@ginacontrino ginacontrino merged commit 09c601e into 0.10.0 Jun 18, 2018
@ginacontrino ginacontrino deleted the 770-middleware-api-requests-refactor branch June 18, 2018 10:13
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.

2 participants