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

Deprecate request promise #8233

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jlloyd-widen
Copy link
Contributor

@jlloyd-widen jlloyd-widen commented May 3, 2024

Check List

  • Tests has been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Issue Reference this PR resolves
Resolves #8204

Description of Changes Made (if issue reference is not provided)
The request and request-promise packages were removed in favor of rock-req (https://github.com/carboneio/rock-req). This aims to resolve dependence on deprecated packages and the vulnerabilities associated with them. However, this has not attempted to remove the offending packages from devDependencies (i.e., in the schema compiler).

Note: I'm not convinced the unit testing strategy is sufficient to prove that these changes haven't broken anything because unit tests typically mock the rock-req package. Will attempt to test locally with an active cube.js instance.

@jlloyd-widen jlloyd-widen requested a review from a team as a code owner May 3, 2024 22:10
Copy link

vercel bot commented May 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-angular-dashboard ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 3:33pm
examples-react-d3 ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 3:33pm
examples-react-dashboard ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 3:33pm
examples-react-data-table ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 3:33pm
examples-react-highcharts ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 3:33pm
examples-react-material-ui ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 3:33pm
examples-react-pivot-table ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 3:33pm
examples-vue-query-builder ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 3:33pm

@github-actions github-actions bot added the pr:community Contribution from Cube.js community members. label May 3, 2024
@jlloyd-widen jlloyd-widen marked this pull request as draft May 6, 2024 15:34
@paveltiunov
Copy link
Member

@jlloyd-widen Thanks for contributing to this one! I'd suggest we go with node-fetch as it's already in dependencies. Sorry for not mentioning it earlier.

@jlloyd-widen jlloyd-widen reopened this May 20, 2024
@jlloyd-widen
Copy link
Contributor Author

@paveltiunov Thanks for the guidance. I have updated the PR to use node-fetch. I'm a newbie at typescript so I encourage a pretty thorough code review to make sure everything looks like it's up to best practice.

@jlloyd-widen jlloyd-widen marked this pull request as ready for review May 20, 2024 19:27
@jlloyd-widen jlloyd-widen requested a review from a team as a code owner May 20, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:community Contribution from Cube.js community members.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate away from request and request-promise
2 participants