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

tests: Add merged selection deferred test case #153

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

calvincestari
Copy link
Member

@calvincestari calvincestari commented Nov 22, 2023

@AnthonyMDev here's the test case we spoke about today. It passes but I'm not sure if it's correct; it's throwing me off that the deferred fragment is a merged selection on line 6778.

@calvincestari calvincestari requested a review from a team as a code owner November 22, 2023 00:28
@@ -63,7 +63,7 @@ extension GraphQLResult {

private func convert(value: Any) -> Any {
var val: Any = value
if let value = value as? ApolloAPI.DataDict {
if let value = value as? DataDict {
Copy link
Member Author

Choose a reason for hiding this comment

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

@BobaFetters I had to make this change to get the cocoapods codegen test configuration project to pass. The change makes sense but how have other PRs been building, including the one that included this change originally?

Copy link
Member Author

@calvincestari calvincestari Nov 22, 2023

Choose a reason for hiding this comment

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

It's because the Codegen Test Configurations job was skipped in that PR. We'll need to revise the logic that turns that on/off.

Copy link
Contributor

@AnthonyMDev AnthonyMDev 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 right to me. The deferred selection should be a mergedSelection there. It's being merged in from the parent selection set.

@calvincestari calvincestari merged commit 8510c5f into main Nov 28, 2023
12 checks passed
@calvincestari calvincestari deleted the defer-test-named-fragment-matching-type-case branch November 28, 2023 21:44
BobaFetters pushed a commit to apollographql/apollo-ios that referenced this pull request Nov 28, 2023
BobaFetters pushed a commit that referenced this pull request Nov 28, 2023
7564cc0 tests: Add merged selection deferred test case (#153)

git-subtree-dir: apollo-ios
git-subtree-split: 7564cc0
BobaFetters pushed a commit that referenced this pull request Nov 28, 2023
…st case

git-subtree-dir: apollo-ios
git-subtree-mainline: f427ad6
git-subtree-split: 7564cc0
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.

2 participants