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

fix(gatsby): allow touching nodes owned by another plugin #38235

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

TylerBarnes
Copy link
Contributor

@TylerBarnes TylerBarnes commented Jun 14, 2023

Description

Looks like in #37782 type owners check was added to the TOUCH_NODE action which is likely causing this issue. I tried this PR locally on a repro from the linked issue and it seemed to resolve it.

canary available as gatsby@5.11.0-touch-nodes-fix.4

Related issues

Fixes #38117

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 14, 2023
@LekoArts LekoArts added topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jun 15, 2023
@LekoArts LekoArts changed the title fix: allow touching nodes owned by another plugin fix(gatsby): allow touching nodes owned by another plugin Jun 15, 2023
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

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

This looks like it actually restore previous behavior. Previously touchNode would only set local variable typeOwners based on touched node's .internal.owner but would not actually try to validate it. Now type ownership is just preserved between builds so not checking it here restores previous behavior as much as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The plugin "gatsby-source-name" created a node of a type "File" owned by "gatsby-source-filesystem"
3 participants