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 nested fragments getting masked out incorrectly #1244

Merged

Conversation

SeppahBaws
Copy link
Collaborator

@SeppahBaws SeppahBaws commented Dec 19, 2023

fixes #1243

When fragments with arguments are nested, they ended up not having their arguments in the generated artifact of the parent fragment. This caused the fields in the nested fragment consuming those arguments to be masked out, as those fragments were instantiated with an empty arguments object.

To help everyone out, please make sure your PR does the following:

  • Update the first line to point to the ticket that this PR fixes
  • Add a message that clearly describes the fix
  • If applicable, add a test that would fail without this fix
  • Make sure the unit and integration tests pass locally with pnpm run tests and cd integration && pnpm run tests
  • Includes a changeset if your fix affects the user with pnpm changeset

Copy link

changeset-bot bot commented Dec 19, 2023

🦋 Changeset detected

Latest commit: 69a2f7f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
houdini Patch
houdini-adapter-auto Patch
houdini-adapter-cloudflare Patch
houdini-adapter-node Patch
houdini-react Patch
houdini-svelte Patch
houdini-plugin-svelte-global-stores Patch
create-houdini Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Dec 19, 2023

Deploy Preview for houdinigraphql canceled.

Name Link
🔨 Latest commit 69a2f7f
🔍 Latest deploy log https://app.netlify.com/sites/houdinigraphql/deploys/658a4e654d992a0008def8a6

Copy link

netlify bot commented Dec 19, 2023

Deploy Preview for houdini-docs-next canceled.

Name Link
🔨 Latest commit 69a2f7f
🔍 Latest deploy log https://app.netlify.com/sites/houdini-docs-next/deploys/658a4e65179610000843242c

@SeppahBaws SeppahBaws changed the title field arguments fragment masking Fix nested fragments getting masked out incorrectly Dec 20, 2023
@SeppahBaws SeppahBaws marked this pull request as ready for review December 21, 2023 13:01
@SeppahBaws
Copy link
Collaborator Author

@AlecAivazis I think this PR is pretty much ready, however some of the e2e tests seem to still be failing. Could you take a look at this, as I can't seem to be able to get those running on my computer?

@AlecAivazis
Copy link
Collaborator

No problem! I updated the snapshots, will merge this in once we get the 👍 from github

AlecAivazis
AlecAivazis previously approved these changes Dec 25, 2023
@AlecAivazis AlecAivazis enabled auto-merge (squash) December 26, 2023 04:16
@AlecAivazis AlecAivazis merged commit c86501a into HoudiniGraphql:main Dec 26, 2023
14 checks passed
@github-actions github-actions bot mentioned this pull request Dec 26, 2023
endigma pushed a commit to endigma/houdini that referenced this pull request Nov 10, 2024
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.

Field parameters passed through fragments with arguments are incorrectly masked out
2 participants