fix(fe2): allow errors in sub msgs (#5712)
This commit is contained in:
committed by
GitHub
parent
d09831eaa2
commit
22f9b9c68e
@@ -82,6 +82,9 @@ const { onResult: onProjectAccSyncItemsUpdated } = useSubscription(
|
||||
onProjectAccSyncItemUpdatedSubscription,
|
||||
() => ({
|
||||
id: props.projectId
|
||||
}),
|
||||
() => ({
|
||||
errorPolicy: 'all'
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ export const useProjectTriggeredAutomationsStatusUpdateTracking = (params: {
|
||||
() => ({
|
||||
id: unref(projectId)
|
||||
}),
|
||||
{ enabled: isEnabled }
|
||||
{ enabled: isEnabled, errorPolicy: 'all' }
|
||||
)
|
||||
|
||||
onResult((res) => {
|
||||
@@ -373,7 +373,7 @@ export const useProjectAutomationsUpdateTracking = (params: {
|
||||
() => ({
|
||||
id: unref(projectId)
|
||||
}),
|
||||
{ enabled: isEnabled }
|
||||
{ enabled: isEnabled, errorPolicy: 'all' }
|
||||
)
|
||||
|
||||
onResult((res) => {
|
||||
|
||||
@@ -230,7 +230,7 @@ export function useProjectModelUpdateTracking(
|
||||
() => ({
|
||||
id: unref(projectId)
|
||||
}),
|
||||
{ enabled: isEnabled }
|
||||
{ enabled: isEnabled, errorPolicy: 'all' }
|
||||
)
|
||||
|
||||
const apollo = useApolloClient().client
|
||||
@@ -349,7 +349,7 @@ export function useProjectPendingModelUpdateTracking(
|
||||
() => ({
|
||||
id: unref(projectId)
|
||||
}),
|
||||
{ enabled: isEnabled }
|
||||
{ enabled: isEnabled, errorPolicy: 'all' }
|
||||
)
|
||||
const apollo = useApolloClient().client
|
||||
const { addFailedJob } = useGlobalFileImportManager()
|
||||
|
||||
@@ -139,7 +139,8 @@ export function usePreviewImageBlob(
|
||||
}),
|
||||
() => ({
|
||||
enabled:
|
||||
!!projectId.value && hasLock.value && isEnabled.value && !import.meta.server
|
||||
!!projectId.value && hasLock.value && isEnabled.value && !import.meta.server,
|
||||
errorPolicy: 'all'
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ export function useProjectUpdateTracking(
|
||||
() => ({
|
||||
id: unref(projectId)
|
||||
}),
|
||||
{ enabled: isEnabled }
|
||||
{ enabled: isEnabled, errorPolicy: 'all' }
|
||||
)
|
||||
|
||||
onProjectUpdated((res) => {
|
||||
|
||||
@@ -79,7 +79,7 @@ export function useProjectVersionUpdateTracking(
|
||||
() => ({
|
||||
id: unref(projectId)
|
||||
}),
|
||||
{ enabled: isEnabled }
|
||||
{ enabled: isEnabled, errorPolicy: 'all' }
|
||||
)
|
||||
|
||||
// Cache updates that should only be invoked once
|
||||
@@ -636,7 +636,7 @@ export function useProjectPendingVersionUpdateTracking(
|
||||
() => ({
|
||||
id: unref(projectId)
|
||||
}),
|
||||
{ enabled: isEnabled }
|
||||
{ enabled: isEnabled, errorPolicy: 'all' }
|
||||
)
|
||||
|
||||
const apollo = useApolloClient().client
|
||||
|
||||
@@ -22,7 +22,11 @@ export function useUserProjectsUpdatedTracking() {
|
||||
}
|
||||
}
|
||||
}
|
||||
`)
|
||||
`),
|
||||
{},
|
||||
() => ({
|
||||
errorPolicy: 'all'
|
||||
})
|
||||
)
|
||||
|
||||
onUserProjectsUpdate((res) => {
|
||||
|
||||
@@ -317,7 +317,8 @@ export function useViewerUserActivityTracking(
|
||||
sessionId: sessionId.value
|
||||
}),
|
||||
() => ({
|
||||
enabled: isLoggedIn.value && !trackInternallyOnly
|
||||
enabled: isLoggedIn.value && !trackInternallyOnly,
|
||||
errorPolicy: 'all'
|
||||
})
|
||||
)
|
||||
|
||||
@@ -604,7 +605,8 @@ export function useViewerThreadTypingTracking(threadId: MaybeRef<string>) {
|
||||
sessionId: sessionId.value
|
||||
}),
|
||||
() => ({
|
||||
enabled: isLoggedIn.value
|
||||
enabled: isLoggedIn.value,
|
||||
errorPolicy: 'all'
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
@@ -62,6 +62,9 @@ export function useViewerCommentUpdateTracking(
|
||||
resourceIdString: unref(params.resourceIdString),
|
||||
loadedVersionsOnly: unref(params.loadedVersionsOnly)
|
||||
}
|
||||
}),
|
||||
() => ({
|
||||
errorPolicy: 'all'
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ export const useOnProjectSavedViewsUpdated = (params: {
|
||||
() => ({
|
||||
projectId: unref(projectId)
|
||||
}),
|
||||
() => ({ enabled: !!(isEnabled.value && userId.value) })
|
||||
() => ({ enabled: !!(isEnabled.value && userId.value), errorPolicy: 'all' })
|
||||
)
|
||||
|
||||
onViewsUpdated((res) => {
|
||||
@@ -284,7 +284,7 @@ export const useOnProjectSavedViewGroupsUpdated = (params: {
|
||||
() => ({
|
||||
projectId: unref(projectId)
|
||||
}),
|
||||
() => ({ enabled: !!(isEnabled.value && userId.value) })
|
||||
() => ({ enabled: !!(isEnabled.value && userId.value), errorPolicy: 'all' })
|
||||
)
|
||||
|
||||
onGroupsUpdated((res) => {
|
||||
|
||||
@@ -30,7 +30,7 @@ export function useWorkspaceProjectsUpdatedTracking(
|
||||
}
|
||||
`),
|
||||
() => ({ slug: workspaceSlug.value }),
|
||||
{ enabled: isEnabled }
|
||||
{ enabled: isEnabled, errorPolicy: 'all' }
|
||||
)
|
||||
|
||||
onWorkspaceProjectsUpdate((res) => {
|
||||
|
||||
Reference in New Issue
Block a user