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

filter objects in getter to only include known typenames #656

Merged
merged 1 commit into from
Aug 5, 2019
Merged

filter objects in getter to only include known typenames #656

merged 1 commit into from
Aug 5, 2019

Conversation

koenpunt
Copy link
Contributor

@koenpunt koenpunt commented Nov 5, 2018

This is a solution to the problem described here:

We have generated a Swift API for a schema that includes an interface.

When we now add an additional type that implements this interface to the server, the app crashes. This can of course be fixed by regenerating the api, but this doesn't help for apps already running on a user's device.
apollographql/apollo-ios#400

I'm not sure if this is the only place where this filtering has to be done, but this at least fixes it for our use case.

@koenpunt
Copy link
Contributor Author

koenpunt commented Jan 3, 2019

Ping ✨

@koenpunt
Copy link
Contributor Author

Anyone?

@trevor-scheer
Copy link
Member

@koenpunt apologies for the lack of response here. Unfortunately, this is code I don't know how to review and we don't currently have anyone available who does.

As a side note, we're hiring a mobile engineer!
https://www.apollographql.com/careers/positions/#Mobile-Engineer

Copy link
Contributor

@designatednerd designatednerd left a comment

Choose a reason for hiding this comment

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

LGTM! I'll get someone with TS experience to take a look at this as well

@jbaxleyiii jbaxleyiii merged commit b0e1f20 into apollographql:master Aug 5, 2019
@koenpunt
Copy link
Contributor Author

koenpunt commented Aug 5, 2019

It took some time, but I'm glad it's merged now! 🚀

@koenpunt koenpunt deleted the filter-unknown-typenames branch August 5, 2019 19:51
@designatednerd
Copy link
Contributor

D'oh! This is causing some issues with our sample project, looking into a fix

@designatednerd designatednerd mentioned this pull request Aug 7, 2019
abernix pushed a commit that referenced this pull request Aug 7, 2019
* Revert changes from #656 which were causing build issues on iOS

* Update changelog
essaji pushed a commit to essaji/apollo-tooling that referenced this pull request Aug 25, 2019
* Revert changes from apollographql#656 which were causing build issues on iOS

* Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants