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

Start Recipes GraphQL server during gatsby develop #23733

Merged
merged 18 commits into from
May 22, 2020

Conversation

mxstbr
Copy link
Contributor

@mxstbr mxstbr commented May 4, 2020

This uses the service discovery mechanism introduced in #22759 to idempotently start the recipes GraphQL server during gatsby develop. That means if somebody runs gatsby recipes while they are already developing their site it will be much faster.

This is also an important step along the way to Admin, which will query the same GraphQL server while develop is running. (reference draft PR: #23734)

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 4, 2020
@pieh pieh added topic: recipes and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels May 4, 2020
@mxstbr mxstbr force-pushed the idempotent-recipes-server branch from f925e65 to be319ea Compare May 7, 2020 10:58
@mxstbr mxstbr marked this pull request as ready for review May 20, 2020 11:46
@mxstbr mxstbr requested review from a team as code owners May 20, 2020 11:46
@mxstbr mxstbr changed the title Idempotently start recipes GraphQL server Start Recipes GraphQL server during gatsby develop May 20, 2020
@mxstbr
Copy link
Contributor Author

mxstbr commented May 20, 2020

The only failing CI is "Cloud Tests", which fail with this error:

Error: Cannot find module 'gatsby-recipes/dist/graphql-server'

This makes no sense because this module exists, a) I can see it locally but more importantly b) all other tests (including those touching the same code paths) pass! 🤔

Does anybody have an idea why this happens?

Copy link
Contributor

@laurieontech laurieontech left a comment

Choose a reason for hiding this comment

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

I have minimal context, but looks reasonable to me!

packages/gatsby-cli/src/recipes.ts Outdated Show resolved Hide resolved
freiksenet
freiksenet previously approved these changes May 20, 2020
@freiksenet
Copy link
Contributor

:shipit:

@mxstbr mxstbr merged commit abedd3c into master May 22, 2020
@mxstbr mxstbr deleted the idempotent-recipes-server branch May 22, 2020 06:39
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.

6 participants