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

[RAV] Remove persisted query link #1512

Merged
merged 3 commits into from
Jun 6, 2023
Merged

Conversation

addy-pathania
Copy link
Contributor

@addy-pathania addy-pathania commented Jun 6, 2023

The edge delivery endpoint doesn't support Automatic Persisted Queries therefore we have a error on the graphql page. To workaround this issue we need to switch our implementation to use the http batch link queries.

Description / Motivation

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@addy-pathania addy-pathania requested a review from a team June 6, 2023 17:06
CHANGELOG.md Outdated Show resolved Hide resolved
@@ -3,10 +3,8 @@ import { HttpClientModule, HttpHeaders } from '@angular/common/http';
import { InMemoryCache, NormalizedCacheObject, PossibleTypesMap } from '@apollo/client/core';
import { Apollo, ApolloModule } from 'apollo-angular';
import { HttpBatchLink } from 'apollo-angular/http';
import { createPersistedQueryLink } from 'apollo-angular/persisted-queries';
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove apollo-angular/persisted-queries and sha256 dependencies from package.json?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed sha56 but persisted-queries is a submodule of apollo-angular which is the primary dependency for apollo.

@@ -2,7 +2,6 @@

import 'cross-fetch/polyfill';
import { ApolloClient, InMemoryCache } from '@apollo/client';
import { sha256 } from 'js-sha256';
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove @apollo/client/link/persisted-queries and sha256 dependencies from package.json?

Copy link
Contributor Author

@addy-pathania addy-pathania Jun 6, 2023

Choose a reason for hiding this comment

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

Removed sha56 but persisted-queries is a submodule of apollo/client which is the primary dependency for apollo and same for vue.

@@ -1,6 +1,5 @@
import 'cross-fetch/polyfill'; // Apollo uses `fetch`, which needs a polyfill for node and older browsers.
import { InMemoryCache, ApolloClient } from '@apollo/client/core';
import { sha256 } from 'js-sha256';
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove @apollo/client/link/persisted-queries and sha256 dependencies from package.json?

@addy-pathania addy-pathania changed the title [RAV] Switch to use http batch link for graphql queries [RAV] Remove persisted query link Jun 6, 2023
@addy-pathania addy-pathania requested a review from ambrauer June 6, 2023 18:27
Copy link
Contributor

@ambrauer ambrauer left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@ambrauer ambrauer merged commit 5fd343a into dev Jun 6, 2023
@ambrauer ambrauer deleted the feature/587462-http-basic-link branch June 6, 2023 19:27
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.

3 participants