Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Conversation

@madelinezec
Copy link
Contributor

@madelinezec madelinezec commented May 11, 2021

@madelinezec madelinezec requested a review from casthewiz May 11, 2021 18:01
"react": "^16.7.0",
"react-dom": "^16.7.0",
"remote-file-size": "^3.0.5",
"request": "^2.88.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd be very hesitant to add request since it is deprecated and may not play well with native Promises (I think you'd have to add https://github.com/request/request-promise-native to get it to play well by default)

axios might be a viable alternative, it's fairly well used in a lot of JS apps and has pretty sane error handling patterns.
https://www.npmjs.com/package/axios#handling-errors

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interesting! We currently use it in githubJob.js and this function is not used, by utils.js does call it here as well.

I'll give axios a try here

Copy link
Contributor

@casthewiz casthewiz May 11, 2021

Choose a reason for hiding this comment

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

😕 oh boy
I bet something in the package.lock has request as a dependency and that's how it's available for import even though it wasn't specified in package.json until this pr

so basically if that's the case, the calls in those files work as a side effect of one our dependencies requiring it...

image

@madelinezec madelinezec changed the title Dop 1986 Dop 1986: Instantly see changes on docs on /deploy May 14, 2021
@GuruPKK GuruPKK marked this pull request as ready for review May 24, 2021 17:31
@GuruPKK GuruPKK merged commit 3a82af0 into mongodb:integration May 24, 2021
GuruPKK added a commit that referenced this pull request Jun 8, 2021
* Dop 1986: Instantly see changes on docs on /deploy (#422)

* testing

* testing

* testing

* save changes

* test

* commit before switch branch

* commit before switch

* temp

* test

* test

* test

* 5-11-21 Release version bump (#417)

* clean up

* clean

* clean up

* clean

* clean

* clean

* lint

* refactor

* refactor

* refactor

* clean

* add axios

Co-authored-by: Cassidy Schaufele <cassidyschaufele@gmail.com>
Co-authored-by: Kumaraguru Periyasamy Kanthasamy <48932104+GuruPKK@users.noreply.github.com>

* pointing to right meta file

* Update githubJob.js

* Update Dockerfile

* Update Dockerfile

Co-authored-by: madelinezec <mez2113@columbia.edu>
Co-authored-by: Cassidy Schaufele <cassidyschaufele@gmail.com>
GuruPKK added a commit that referenced this pull request Jun 8, 2021
* Dop 1986: Instantly see changes on docs on /deploy (#422)

* testing

* testing

* testing

* save changes

* test

* commit before switch branch

* commit before switch

* temp

* test

* test

* test

* 5-11-21 Release version bump (#417)

* clean up

* clean

* clean up

* clean

* clean

* clean

* lint

* refactor

* refactor

* refactor

* clean

* add axios

Co-authored-by: Cassidy Schaufele <cassidyschaufele@gmail.com>
Co-authored-by: Kumaraguru Periyasamy Kanthasamy <48932104+GuruPKK@users.noreply.github.com>

* pointing to right meta file

* Update githubJob.js

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* Cache purge changes (#435)

* Dop 1986: Instantly see changes on docs on /deploy (#422)

* testing

* testing

* testing

* save changes

* test

* commit before switch branch

* commit before switch

* temp

* test

* test

* test

* 5-11-21 Release version bump (#417)

* clean up

* clean

* clean up

* clean

* clean

* clean

* lint

* refactor

* refactor

* refactor

* clean

* add axios

Co-authored-by: Cassidy Schaufele <cassidyschaufele@gmail.com>
Co-authored-by: Kumaraguru Periyasamy Kanthasamy <48932104+GuruPKK@users.noreply.github.com>

* pointing to right meta file

* Update githubJob.js

* Update Dockerfile

* Update Dockerfile

Co-authored-by: madelinezec <mez2113@columbia.edu>
Co-authored-by: Cassidy Schaufele <cassidyschaufele@gmail.com>

* Update S3Publish.js

* Update S3Publish.js

* Update fastlyJob.js

* Update S3Publish.js

Co-authored-by: madelinezec <mez2113@columbia.edu>
Co-authored-by: Cassidy Schaufele <cassidyschaufele@gmail.com>
GuruPKK added a commit that referenced this pull request Feb 24, 2022
* Dop 1986: Instantly see changes on docs on /deploy (#422)

=
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants