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

Initial request migration #2950

Merged
merged 2 commits into from Feb 13, 2020
Merged

Initial request migration #2950

merged 2 commits into from Feb 13, 2020

Conversation

davidrapson
Copy link
Contributor

@davidrapson davidrapson commented Feb 13, 2020

See #2949 for the context on this.

Begins migrating away from request and request-promise-native to an alternate library.

got looks like the best candidate as they have a clear migration guide for the most common things and reasonable docs.

Did a bit of a spike into migrating all instances of request-promise-native in another branch and most changes are straightforward. The one part that needs a bit more translation is file attachments as part of salesforce submissions.

This pull request focuses solely on migrating the grants service. Of all the changes needed this was the most straightforward and most targeted so seems like a good enough place to start.

Request is deprecated so we need to migrate to an alternate library.See: request/request#3142
Copy link
Contributor

@mattandrews mattandrews left a comment

Choose a reason for hiding this comment

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

Looks really nice – go for it 👍

qs: params
});
query(searchParams) {
return queryPastGrants('', { searchParams: searchParams }).json();
Copy link
Contributor

Choose a reason for hiding this comment

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

💯

@davidrapson davidrapson merged commit f4c7a6d into master Feb 13, 2020
@davidrapson davidrapson deleted the initial-request-migration branch February 13, 2020 11:30
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.

None yet

2 participants