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

[DO NOT MERGE] PP 11681 Replace 'request' library with 'axios' #4174

Closed
wants to merge 11 commits into from

Conversation

JFSGDS
Copy link
Contributor

@JFSGDS JFSGDS commented Feb 15, 2024

WHAT

Replace request library with axios

https://payments-platform.atlassian.net/browse/PP-11681

HOW

  • Use latest version of pay-js-commons library containing axios-base-client code
  • Add clients/base files for use with axios-base-clientcalls
  • Change client methods to use ‘axios-base-client’ library.
  • Refactor call parameters initialisation.
  • Use async/await syntax.

- Initial set up.
- Use latest version of 'pay-js-commons' library containing 'axios-base-client' code.
- Add 'clients/base' files for use with axis-base-client calls.
- Change  ‘products.client’ methods to use ‘axios-base-client’ library.
- Refactor call parameters initialisation.
- Use ‘async/await’ syntax.
- Change  ‘webhooks.client’ methods to use ‘axios-base-client’.
- Refactor call parameters initialisation.
- Use ‘async/await’ syntax.
- Change ‘public-auth.client’ methods to use ‘axios-base-client’ library.
- Refactor call parameters initialisation.
- Use ‘async/await’ syntax.
- Change ‘ledger.client’ methods to use ‘axios-base-client’.
- Refactor call parameters initialisation.
- Use ‘async/await’ syntax.
- Change  ‘connector.client’ methods to use ‘axios-base-client’.
- Refactor call parameters initialisation.
- Use ‘async/await’ syntax.
- Change  ‘adminusers.client’ methods to use ‘axios-base-client’.
- Refactor call parameters initialisation.
- Use ‘async/await’ syntax.
- Extend ‘instanceof RESTClientError’ test in registration controller to include a test for constructor name.
  This is order to identify an error thrown by the new 'axios-base-client'. Possibly needs refactoring.
- Remove ‘base.client’ code as now replaced by calls to ‘axios-base-client’.
- Remove associated test.
@JFSGDS JFSGDS force-pushed the PP-11681_replace_request_lib_with_axios branch from b9beb4c to 0abcba8 Compare February 23, 2024 16:06
@iqbalgds
Copy link
Contributor

iqbalgds commented May 8, 2024

No longer required - this PR was broken down into lot's of little PRs that have merged in.

@iqbalgds iqbalgds closed this May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants