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

fix: Skip io.cozy.jobs queries #1249

Open
wants to merge 1 commit into
base: feat/offline_files_improve
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/libs/intents/flagshipLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@ export const flagshipLinkRequest = async (
)
}

// Temporary skip `io.cozy.jobs` queries as they are not mandatory
// to display cozy-home but are very long to be executed (>20s) and
// delay cozy-home first draw
// Should be removed when we find an optimisation for `io.cozy.jobs`
if (operation.doctype === 'io.cozy.jobs') {
return {
data: [],
meta: {
count: 0
},
next: false,
skip: 0
}
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const result = await client.query(operation)

Expand Down
Loading