Merged in feat/rework-contentstack (pull request #3493)
Feat(SW-3708): refactor contentstack fetching (removing all refs) and cache invalidation * Remove all REFS * Revalidate correct language * PR fixes * PR fixes * Throw when errors from contentstack api Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -16,17 +16,3 @@ export const AccountPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const AccountPageBreadcrumbRef = gql`
|
||||
fragment AccountPageBreadcrumbRef on AccountPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -1,45 +1,15 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import {
|
||||
AccountPageBreadcrumb,
|
||||
AccountPageBreadcrumbRef,
|
||||
} from "./AccountPage.graphql"
|
||||
import {
|
||||
CampaignOverviewPageBreadcrumb,
|
||||
CampaignOverviewPageBreadcrumbRef,
|
||||
} from "./CampaignOverviewPage.graphql"
|
||||
import {
|
||||
CampaignPageBreadcrumb,
|
||||
CampaignPageBreadcrumbRef,
|
||||
} from "./CampaignPage.graphql"
|
||||
import {
|
||||
CollectionPageBreadcrumb,
|
||||
CollectionPageBreadcrumbRef,
|
||||
} from "./CollectionPage.graphql"
|
||||
import {
|
||||
ContentPageBreadcrumb,
|
||||
ContentPageBreadcrumbRef,
|
||||
} from "./ContentPage.graphql"
|
||||
import {
|
||||
DestinationCityPageBreadcrumb,
|
||||
DestinationCityPageBreadcrumbRef,
|
||||
} from "./DestinationCityPage.graphql"
|
||||
import {
|
||||
DestinationCountryPageBreadcrumb,
|
||||
DestinationCountryPageBreadcrumbRef,
|
||||
} from "./DestinationCountryPage.graphql"
|
||||
import {
|
||||
DestinationOverviewPageBreadcrumb,
|
||||
DestinationOverviewPageBreadcrumbRef,
|
||||
} from "./DestinationOverviewPage.graphql"
|
||||
import {
|
||||
HotelPageBreadcrumb,
|
||||
HotelPageBreadcrumbRef,
|
||||
} from "./HotelPage.graphql"
|
||||
import {
|
||||
LoyaltyPageBreadcrumb,
|
||||
LoyaltyPageBreadcrumbRef,
|
||||
} from "./LoyaltyPage.graphql"
|
||||
import { AccountPageBreadcrumb } from "./AccountPage.graphql"
|
||||
import { CampaignOverviewPageBreadcrumb } from "./CampaignOverviewPage.graphql"
|
||||
import { CampaignPageBreadcrumb } from "./CampaignPage.graphql"
|
||||
import { CollectionPageBreadcrumb } from "./CollectionPage.graphql"
|
||||
import { ContentPageBreadcrumb } from "./ContentPage.graphql"
|
||||
import { DestinationCityPageBreadcrumb } from "./DestinationCityPage.graphql"
|
||||
import { DestinationCountryPageBreadcrumb } from "./DestinationCountryPage.graphql"
|
||||
import { DestinationOverviewPageBreadcrumb } from "./DestinationOverviewPage.graphql"
|
||||
import { HotelPageBreadcrumb } from "./HotelPage.graphql"
|
||||
import { LoyaltyPageBreadcrumb } from "./LoyaltyPage.graphql"
|
||||
|
||||
export const Breadcrumbs = gql`
|
||||
fragment Breadcrumbs on Breadcrumbs {
|
||||
@@ -73,36 +43,3 @@ export const Breadcrumbs = gql`
|
||||
${HotelPageBreadcrumb}
|
||||
${LoyaltyPageBreadcrumb}
|
||||
`
|
||||
|
||||
export const BreadcrumbsRefs = gql`
|
||||
fragment BreadcrumbsRefs on Breadcrumbs {
|
||||
title
|
||||
parentsConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...AccountPageBreadcrumbRef
|
||||
...CampaignOverviewPageBreadcrumbRef
|
||||
...CampaignPageBreadcrumbRef
|
||||
...CollectionPageBreadcrumbRef
|
||||
...ContentPageBreadcrumbRef
|
||||
...DestinationCityPageBreadcrumbRef
|
||||
...DestinationCountryPageBreadcrumbRef
|
||||
...DestinationOverviewPageBreadcrumbRef
|
||||
...HotelPageBreadcrumbRef
|
||||
...LoyaltyPageBreadcrumbRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${AccountPageBreadcrumbRef}
|
||||
${CampaignOverviewPageBreadcrumbRef}
|
||||
${CampaignPageBreadcrumbRef}
|
||||
${CollectionPageBreadcrumbRef}
|
||||
${ContentPageBreadcrumbRef}
|
||||
${DestinationCityPageBreadcrumbRef}
|
||||
${DestinationCountryPageBreadcrumbRef}
|
||||
${DestinationOverviewPageBreadcrumbRef}
|
||||
${HotelPageBreadcrumbRef}
|
||||
${LoyaltyPageBreadcrumbRef}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const CampaignOverviewPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const CampaignOverviewPageBreadcrumbRef = gql`
|
||||
fragment CampaignOverviewPageBreadcrumbRef on CampaignOverviewPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const CampaignPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const CampaignPageBreadcrumbRef = gql`
|
||||
fragment CampaignPageBreadcrumbRef on CampaignPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const CollectionPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const CollectionPageBreadcrumbRef = gql`
|
||||
fragment CollectionPageBreadcrumbRef on CollectionPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const ContentPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const ContentPageBreadcrumbRef = gql`
|
||||
fragment ContentPageBreadcrumbRef on ContentPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const DestinationCityPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const DestinationCityPageBreadcrumbRef = gql`
|
||||
fragment DestinationCityPageBreadcrumbRef on DestinationCityPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const DestinationCountryPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const DestinationCountryPageBreadcrumbRef = gql`
|
||||
fragment DestinationCountryPageBreadcrumbRef on DestinationCountryPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const DestinationOverviewPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const DestinationOverviewPageBreadcrumbRef = gql`
|
||||
fragment DestinationOverviewPageBreadcrumbRef on DestinationOverviewPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const HotelPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const HotelPageBreadcrumbRef = gql`
|
||||
fragment HotelPageBreadcrumbRef on HotelPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
@@ -16,17 +16,3 @@ export const LoyaltyPageBreadcrumb = gql`
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
export const LoyaltyPageBreadcrumbRef = gql`
|
||||
fragment LoyaltyPageBreadcrumbRef on LoyaltyPage {
|
||||
web {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
${System}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user