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(fragment): fragment on query fix #3484

Closed
wants to merge 4 commits into from
Closed

Conversation

abhiaiyer91
Copy link
Contributor

@abhiaiyer91 abhiaiyer91 commented May 20, 2018

For this issue #3402

@apollo-cla
Copy link

apollo-cla commented May 20, 2018

Fails
🚫

No CHANGELOG added.

Generated by 🚫 dangerJS

@hwillson hwillson self-assigned this May 22, 2018
Copy link
Member

@hwillson hwillson 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 great @abhiaiyer91 - thanks for looking into this! Any chance you could add some tests for this? Your tests in apollographql/react-apollo#1987 were great; maybe they could be re-hashed for AC specifically? If you don't have time to finalize this right now, let me know and I'll dive in. Thanks again!

@abhiaiyer91
Copy link
Contributor Author

I shall!

Copy link
Member

@hwillson hwillson left a comment

Choose a reason for hiding this comment

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

Hi @abhiaiyer91 - just a couple more things, then we should be all set here:

  • It looks like some of the apollo-cache-inmemory tests are failing due to these changes impacting the way inline fragments work. The idValue.id === 'ROOT_QUERY' check is returning true for all inline fragments in the failing tests, even though those tests intentionally have some inline fragments querying against invalid types.
  • The test you've added doesn't seem to fail without the idValue.id === 'ROOT_QUERY' change. It would be awesome if we could make sure it fails before these changes are applied, so we know we have our regression bases covered.

Thanks!

@hwillson hwillson deleted the fragmentsOnQuery branch May 29, 2018 12:01
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants