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

Would you accept to migrate from octonode? #131

Open
RomainLanz opened this issue Feb 20, 2021 · 5 comments
Open

Would you accept to migrate from octonode? #131

RomainLanz opened this issue Feb 20, 2021 · 5 comments
Labels
cli Relates to an Origami cli

Comments

@RomainLanz
Copy link

Hey! 👋

The library octonode installs bluebird and request packages.

Since request is deprecated, it triggers a warning every time we install it.
It is also really heavy.

I believe bluebird is not useful anymore since any JavaScript runtimes support Promises.

GitHub made a library to request their REST or their GraphQL endpoint.

I propose that we switch to one of those libraries instead of relying on octonode.

@github-actions github-actions bot added the cli Relates to an Origami cli label Feb 20, 2021
@JakeChampion
Copy link
Contributor

Hey! 👋

The library octonode installs bluebird and request packages.

Since request is deprecated, it triggers a warning every time we install it.
It is also really heavy.

I believe bluebird is not useful anymore since any JavaScript runtimes support Promises.

GitHub made a library to request their REST or their GraphQL endpoint.

I propose that we switch to one of those libraries instead of relying on octonode.

Sounds good with me 👍

@RomainLanz
Copy link
Author

Cool! Would you prefer to use the GraphQL or REST endpoint?

@JakeChampion
Copy link
Contributor

Cool! Would you prefer to use the GraphQL or REST endpoint?

@octokit/rest is preferred as we use it in other projects already

@RomainLanz
Copy link
Author

It seems that tests are deeply linked to the implementation.
So I'll also need to rewrite all of those.

What do you think if we use this opportunity to write E2E tests that will verify that the code is working instead of using mocks everywhere (which is very dangerous since it doesn't test anything and can give wrong confidence about your code)?

@JakeChampion
Copy link
Contributor

It seems that tests are deeply linked to the implementation.
So I'll also need to rewrite all of those.

What do you think if we use this opportunity to write E2E tests that will verify that the code is working instead of using mocks everywhere (which is very dangerous since it doesn't test anything and can give wrong confidence about your code)?

I'm happy with end-to-end tests, sounds like a good idea to have them 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Relates to an Origami cli
Projects
None yet
Development

No branches or pull requests

2 participants