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

Support Auto-Persisted Queries #767

Merged
merged 24 commits into from
Oct 14, 2019
Merged

Support Auto-Persisted Queries #767

merged 24 commits into from
Oct 14, 2019

Conversation

designatednerd
Copy link
Contributor

@designatednerd designatednerd commented Sep 16, 2019

This is an update of work started in #608. However, we're running into an issue where stripping whitespace out of queries is causing APQ validation to fail, because the SHA256 hash no longer matches. I need to figure out if there's a way around this or if I need to just suck it up and use multiline string literals (cc @lilyball).

Leaving this in draft until I can figure out, but @Codebear98 would love feedback on some of the restructuring I did in the merge.

Henry Hong and others added 14 commits July 16, 2019 16:22
2. remove `_` on private variable
3. add guard clause to optional variable in HttpNetworkTransportTests
4. removed redundant parameter in StarWarsServerTests
5. change // Mark to // MARK
6. single line for method declaration
7. removed redundant code in HTTPNetworkTransport
9. update switch style
renamed useHttpGetMethodForPersistedQueries to useGETForPersistedQueryRetry
un-shared test projects
fixed grammer typo in GraphQLHTTPResponseError
updated to use XCTAssertEqual
# Conflicts:
#	Apollo.xcodeproj/project.pbxproj
#	Sources/Apollo/GraphQLGETTransformer.swift
#	Sources/Apollo/HTTPNetworkTransport.swift
#	Tests/ApolloTests/GETTransformerTests.swift
#	Tests/StarWarsAPI/API.swift
@designatednerd
Copy link
Contributor Author

This is now waiting on some changes to tooling

# Conflicts:
#	Apollo.xcodeproj/project.pbxproj
#	Sources/Apollo/HTTPNetworkTransport.swift
#	Sources/Apollo/RequestCreator.swift
# Conflicts:
#	Apollo.xcodeproj/project.pbxproj
#	Sources/Apollo/RequestCreator.swift
#	Tests/ApolloTests/GETTransformerTests.swift
#	Tests/ApolloTests/RequestCreatorTests.swift
#	Tests/StarWarsAPI/API.swift
@designatednerd designatednerd marked this pull request as ready for review October 10, 2019 02:22
@designatednerd
Copy link
Contributor Author

Okay! Will need to merge this again once #821 gets merged, but this shouuuuuuld be about ready to go

@designatednerd designatednerd added this to the 0.17.0 milestone Oct 10, 2019
@designatednerd designatednerd merged commit 0cc333d into master Oct 14, 2019
@designatednerd designatednerd deleted the support_get_apqs branch October 14, 2019 20:53
@fiznool
Copy link

fiznool commented Dec 12, 2019

This is really great. ❤️

So far I guess we can look at the test files for examples, but are there any plans to add a section in the docs regarding how to set this up?

@designatednerd
Copy link
Contributor Author

Added #951 to my todo list @fiznool

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