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

feat(gatsby): drop SitePage inference and schema update #33319

Merged
merged 9 commits into from
Sep 28, 2021

Conversation

vladar
Copy link
Contributor

@vladar vladar commented Sep 27, 2021

Description

A follow-up for #33268. This PR removes schema-related logic that is now redundant. Namely, schema updating after createPages API. Since we don't infer page context anymore we can rely on internal typings for SitePage and don't need to update schema after SitePage nodes are created.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Sep 27, 2021
@vladar vladar added topic: GraphQL Related to Gatsby's GraphQL layer and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Sep 27, 2021
@vladar vladar marked this pull request as ready for review September 28, 2021 08:31
wardpeet
wardpeet previously approved these changes Sep 28, 2021
Copy link
Contributor

@wardpeet wardpeet left a comment

Choose a reason for hiding this comment

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

LGTM! If test are green this is good to go! 🚢

@vladar vladar merged commit 17a3f9f into master Sep 28, 2021
@vladar vladar deleted the vladar/drop-schema-update branch September 28, 2021 12:31
wardpeet pushed a commit to herecydev/gatsby that referenced this pull request Oct 29, 2021
* feat(gatsby): drop SitePage inference and schema update

* fix cli integration tests

* add missing field to built-it SitePage type

* update snapshots

* correct link between nodes

* infer -> dontInfer

* trigger tests re-run

* trigger tests re-run

* Restore `assignChangedPages`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: GraphQL Related to Gatsby's GraphQL layer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants